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; }
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"); }
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; }
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; }
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(); }