示例#1
0
 public Timer()
 {
     Uid = RandomGenerator.RandomString(10);
     X   = 0;
     Y   = 0;
     PB2Map.MapObjects.Add(this);
 }
示例#2
0
        } = -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,
                };
            }
        }
示例#3
0
 public Gun(GunModel model)
 {
     this.Model = model;
     Uid        = RandomGenerator.RandomString(10);
     PB2Map.MapObjects.Add(this);
 }
示例#4
0
 public Variable()
 {
     this.Name = RandomGenerator.RandomString(10);
 }