Esempio n. 1
0
        public static void AddJoyStickActionData(ObjectData objData, ClientJoyStickData joyStickData, JoyStickActionType actionType, JoyStickActionFaceType faceType)
        {
            var gameSystemData = WorldManager.Instance.GameCore.GetData <GameSystemData>();

            var actorData = objData.GetData <ActorData>();

            var joyStickActionData = WorldManager.Instance.PoolMgr.Get <JoyStickActionData>();

            joyStickActionData.actorId     = actorData.actorId;
            joyStickActionData.frame       = gameSystemData.clientFrame + Constant.JOYSTICK_DELAY_FRAME_COUNT;
            joyStickActionData.actionType  = actionType;
            joyStickActionData.actionParam = faceType;
            joyStickData.actionList.Add(joyStickActionData);

            objData.SetDirty(joyStickData);
        }
 public void Clear()
 {
     frame       = 0;
     actionType  = JoyStickActionType.None;
     actionParam = JoyStickActionFaceType.None;
 }