コード例 #1
0
ファイル: MapLoadTriggerEvent.cs プロジェクト: pzaps/Server
 public MapLoadTriggerEvent(string id, TriggerEventAction action, int triggerCommand, bool autoRemove,
     Client client, string mapID)
 {
     this.id = id;
     this.action = action;
     this.triggerCommand = triggerCommand;
     this.autoRemove = autoRemove;
     this.client = client;
     this.mapID = mapID;
 }
コード例 #2
0
 public MapLoadTriggerEvent(string id, TriggerEventAction action, int triggerCommand, bool autoRemove,
                            Client client, string mapID)
 {
     this.id             = id;
     this.action         = action;
     this.triggerCommand = triggerCommand;
     this.autoRemove     = autoRemove;
     this.client         = client;
     this.mapID          = mapID;
 }
コード例 #3
0
        public void Load(DataManager.Players.PlayerDataTriggerEvent triggerEvent, Client client)
        {
            this.client = client;

            id             = triggerEvent.Items.GetValue("ID");
            action         = (TriggerEventAction)Enum.Parse(typeof(TriggerEventAction), triggerEvent.Items.GetValue("Action"), true);
            triggerCommand = triggerEvent.Items.GetValue("TriggerCommand").ToInt();
            autoRemove     = triggerEvent.Items.GetValue("AutoRemove").ToBool();

            mapID = triggerEvent.Items.GetValue("MapID");
        }
コード例 #4
0
        public StepCounterTriggerEvent(string id, TriggerEventAction action, int triggerCommand, bool autoRemove,
            Client client, int steps)
        {
            this.id = id;
            this.action = action;
            this.triggerCommand = triggerCommand;
            this.autoRemove = autoRemove;
            this.client = client;
            this.steps = steps;

            this.stepsCounted = 0;
        }
コード例 #5
0
 public SteppedOnTileTriggerEvent(string id, TriggerEventAction action, int triggerCommand, bool autoRemove,
     Client client, string mapID, int x, int y)
 {
     this.id = id;
     this.action = action;
     this.triggerCommand = triggerCommand;
     this.autoRemove = autoRemove;
     this.client = client;
     this.mapID = mapID;
     this.x = x;
     this.y = y;
 }
コード例 #6
0
        public StepCounterTriggerEvent(string id, TriggerEventAction action, int triggerCommand, bool autoRemove,
                                       Client client, int steps)
        {
            this.id             = id;
            this.action         = action;
            this.triggerCommand = triggerCommand;
            this.autoRemove     = autoRemove;
            this.client         = client;
            this.steps          = steps;

            this.stepsCounted = 0;
        }
コード例 #7
0
 public SteppedOnTileTriggerEvent(string id, TriggerEventAction action, int triggerCommand, bool autoRemove,
                                  Client client, string mapID, int x, int y)
 {
     this.id             = id;
     this.action         = action;
     this.triggerCommand = triggerCommand;
     this.autoRemove     = autoRemove;
     this.client         = client;
     this.mapID          = mapID;
     this.x = x;
     this.y = y;
 }
コード例 #8
0
        public void Load(DataManager.Players.PlayerDataTriggerEvent triggerEvent, Client client)
        {
            this.client = client;

            id = triggerEvent.Items.GetValue("ID");
            action = (TriggerEventAction)Enum.Parse(typeof(TriggerEventAction), triggerEvent.Items.GetValue("Action"), true);
            triggerCommand = triggerEvent.Items.GetValue("TriggerCommand").ToInt();
            autoRemove = triggerEvent.Items.GetValue("AutoRemove").ToBool();

            steps = triggerEvent.Items.GetValue("Steps").ToInt();
            stepsCounted = triggerEvent.Items.GetValue("StepsCounted").ToInt();
        }