1
This commit is contained in:
10
Unity/Scripts/Components/Format/FormatData.cs
Normal file
10
Unity/Scripts/Components/Format/FormatData.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace BITKit
|
||||
{
|
||||
public abstract class FormatData : Provider<string>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
24
Unity/Scripts/Components/Format/FormatDataToKeyValue.cs
Normal file
24
Unity/Scripts/Components/Format/FormatDataToKeyValue.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace BITKit
|
||||
{
|
||||
public class FormatDataToKeyValue : FormatData
|
||||
{
|
||||
[SubclassSelector, SerializeReference] public References key;
|
||||
public Provider output;
|
||||
Dictionary<string, string> dictionary = new();
|
||||
public override string Get()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
public override void Set(string value)
|
||||
{
|
||||
WWWForm form = new();
|
||||
form.AddField("key", key);
|
||||
form.AddField("value", value);
|
||||
|
||||
output?.Set(form);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user