public Timer() { Uid = RandomGenerator.RandomString(10); X = 0; Y = 0; PB2Map.MapObjects.Add(this); }
} = -1; //Infinite by default public Trigger(string uid = "", bool ExecuteAtStart = false) { if (string.IsNullOrEmpty(uid)) { uid = RandomGenerator.RandomString(10); } Uid = uid; X = 0; Y = 0; Actions = new List <TriggerAction>(); PB2Map.MapObjects.Add(this); if (ExecuteAtStart) { var executeTimer = new Timer { Delay = 0, LaunchedOnStart = true, MaxCalls = 1, Target = this, }; } }
public Gun(GunModel model) { this.Model = model; Uid = RandomGenerator.RandomString(10); PB2Map.MapObjects.Add(this); }
public Variable() { this.Name = RandomGenerator.RandomString(10); }