网演高层钦州
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

207 lines
5.3 KiB

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace AX.InputSystem
{
/// <summary>
/// 输入系统所用的命令接口
/// </summary>
public interface ICommand
{
void Execute(long gameObjID, CmdArgs arg);
}
/// <summary>
/// 参数类型
/// </summary>
public class CmdArgs
{
public Vector3 currentCursorPos;//当前鼠标指针的位置
}
/// <summary>
/// 技能命令参数
/// </summary>
public class SkillArgs : CmdArgs
{
public long GameObjectID { get; set; }
public Vector3 Pos { get; set; }
}
/// <summary>
/// 相机操作参数
/// </summary>
public class CameraCmdArgs : CmdArgs
{
public float mouseScroll;//鼠标中键滚动值
public float mouseX;//鼠标在屏幕坐标系下X方向的变化值
public float mouseY;//鼠标在屏幕坐标系下Y方向的变化值
public bool rotateStart;
public Vector3 mousePosition;//鼠标在屏幕坐标系中的当前位置
public bool dragStart;
public float keyX;
public bool targetMoveing;
public float distance;
public float x;
public float y;
}
/// <summary>
/// 克隆参数
/// </summary>
public class CloneCmdArgs : CmdArgs
{
public CloneObjType cloneObjType;//克隆对象类型
public bool selected;//是否选中克隆按钮
public Vector3 hitPos;
public long gameObjID;//克隆物体时点击的物体的gameObjID
public Vector3 mousePosition;//鼠标在屏幕坐标系中的当前位置
public FireCarEngine fireCarEngine;
public Organization org;
public Color color;
public FireDeployPrivateToolType fireDeployPrivateToolType;
}
/// <summary>
/// 克隆蔓延火的参数
/// </summary>
public class CloneSpreadFireCmdArgs : CmdArgs
{
public CloneObjType cloneObjType;//克隆对象类型
public Vector3 hitPos;
public long parentFireGameObjID;//火源火的gameObjID
public string parentFireBuildNum;
public int parentFireFloorNum;
public int parentFireInterlayerNum;
}
public class DrawRectSelectRangeCmdArgs : CmdArgs
{
public Vector3 mousePosition;//鼠标在屏幕坐标系中的当前位置
public bool drawRectStart;
}
/// <summary>
/// UI滚动参数
/// </summary>
public class UIScrollCmdArgs : CmdArgs
{
public Vector2 vctr;
}
/// <summary>
/// 寻路参数
/// </summary>
public class PathFindingCmdArgs : CmdArgs
{
public long gameObjID;
public Vector3 hitPoint;
}
public class TrappedPathFindingCmdArgs : CmdArgs
{
public long gameObjIdSelf;//被困人员自己
//public long gameObjID;//点击的物体的id
//public GameObject fireman;//移动的消防员
public Vector3 hitPoint;
public bool MeetDangerous;
//public List<long> MoveIdlist;
}
/// <summary>
/// 编辑器模式与游戏模式切换参数
/// </summary>
public class EditorModeCtrlArgs : CmdArgs
{
public bool selected;
}
public class ObjDragCmdArgs : CmdArgs
{
public Vector3 mousePosition;//鼠标在屏幕坐标系中的当前位置
public bool dragStart;
}
public class UIDropDownValueCmdArgs : CmdArgs
{
public int chooseValue;
}
public class UIInputFieldArgs : CmdArgs
{
public string msg;
}
public class UIScrollBarArgs : CmdArgs
{
public float value;
}
public class UIScrollRectCmdArgs : CmdArgs
{
public Vector2 vctr;
}
public class UISliderArgs : CmdArgs
{
public float value;
}
public class UIToggleArgs : CmdArgs
{
public bool isOn;
}
public class OnDragCmdArgs : CmdArgs//ui跟随鼠标
{
public Vector3 position;//鼠标位置
public Camera EventCamera;
public bool isshow = false;
}
public class ForcibleEntryCmdArgs : CmdArgs
{
public long gameObjID;
public long fireManID;
}
public class GuideLodeCmdArgs : CmdArgs
{
public List<Vector3> pathpointList;
public long TrappedID;
public long FireManID;
}
//显示隐藏名称参数
public class HideShowUINameCmdArgs : CmdArgs
{
public long gameObjID;
public bool IsHide;
}
//改变名称参数
public class ChangeUINameCmdArgs : CmdArgs
{
public long gameObjID;
public string Value;
}
//销毁名称参数
public class DestroyUINameCmdArgs : CmdArgs
{
public long gameObjID;
}
public class WaterHoseDelectCmdArgs : CmdArgs
{
public long StartObjId;
public long EndObjId;
public GameObject SelectHoseWater;
}
public class PackOrTakeHoseCmdArgs : CmdArgs
{
public GameObject gameObj;
public long fireManID;
public Vector3 HitPoint;
}
public class FireLiquidLevelCmdArgs : CmdArgs
{
public float FireScale;
public long SelectgameObjID;
}
public class FireDeployObjDeleteCmdArgs : CmdArgs
{
public long gameObjId;
}
}