49 lines
967 B
C#
49 lines
967 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Text;
|
|
using Newtonsoft.Json;
|
|
using Sirenix.OdinInspector;
|
|
using Sirenix.OdinInspector.Editor;
|
|
using UnityEngine;
|
|
|
|
namespace Editor.GenResourcePathEditor
|
|
{
|
|
public class GenNetworkDataEditor : OdinEditorWindow
|
|
{
|
|
[UnityEditor.MenuItem("Tool/ZC/GenNetworkDataEditor")]
|
|
private static void OpenWindow()
|
|
{
|
|
GetWindow<GenNetworkDataEditor>().Show();
|
|
}
|
|
|
|
|
|
[Button]
|
|
void GenConfig(string name)
|
|
{
|
|
object a = 1;
|
|
string type = a.GetType().ToString();
|
|
Debug.Log(type);
|
|
}
|
|
}
|
|
|
|
public class MessageDataInfo
|
|
{
|
|
public MessageType messageType;
|
|
public MessageInfoType messageInfoType;
|
|
}
|
|
|
|
public enum MessageInfoType
|
|
{
|
|
String,
|
|
Int,
|
|
Float,
|
|
Bool,
|
|
List,
|
|
}
|
|
|
|
public enum MessageType
|
|
{
|
|
S2C,
|
|
C2S
|
|
}
|
|
} |