66 lines
1.4 KiB
C#
66 lines
1.4 KiB
C#
using Assets.MyGame.Scripts.Net.API.GameConfig_SubClass;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Assets.MyGame.Scripts.Net.WebResponses
|
|
{
|
|
[Serializable]
|
|
public enum FrameDataType
|
|
{
|
|
none=0,
|
|
rotateTurrect,
|
|
fireBullet,
|
|
createFish,
|
|
changeAutoTarget
|
|
|
|
}
|
|
/// <summary>
|
|
/// 同步游戏数据
|
|
/// </summary>
|
|
[Serializable]
|
|
public class SyncGameData
|
|
{
|
|
public int sitPos;
|
|
public FrameDataType frameType;
|
|
public Object frameData;
|
|
|
|
}
|
|
[Serializable]
|
|
public class FrameData
|
|
{
|
|
|
|
}
|
|
[Serializable]
|
|
public class FrameData_Rotate : FrameData
|
|
{
|
|
public float angle;
|
|
}
|
|
[Serializable]
|
|
public class FrameData_FireBullit : FrameData
|
|
{
|
|
public float angle;
|
|
public long gold;
|
|
public bool isSanShe;
|
|
public bool isSuoDing;
|
|
public bool auto;
|
|
public bool twoRTruuect;
|
|
public string monsterID;
|
|
}
|
|
[Serializable]
|
|
public class FrameData_CreateFish : FrameData
|
|
{
|
|
public RoomFishDetailConfig fish;
|
|
public string guid;
|
|
}
|
|
[Serializable]
|
|
public class FrameData_ChangeAutoTarget : FrameData
|
|
{
|
|
public string targetGuid;
|
|
}
|
|
}
|