Пример #1
0
        public void CreateEventBox(Types type, Vector pos, Vector[] limits)
        {
            var id   = GetNextObjectId();
            var hash = HashedObjects.Keys.ToList()[id];
            var box  = new EventBox(id, hash, type, pos, this, limits, true);

            HashedObjects[hash] = box;
            if (AddObject(box))
            {
                Out.WriteLog("Created Event Box[" + type + "] on mapId " + Id);
            }
        }
Пример #2
0
        public void CreateLootBox(Vector position, Reward reward, Types type, int disposeMs)
        {
            var id   = GetNextObjectId();
            var hash = HashedObjects.Keys.ToList()[id];
            var box  = new LootBox(id, hash, type, position, this, reward, disposeMs);

            HashedObjects[hash] = box;
            if (AddObject(box))
            {
                Out.WriteLog("Created LootBox [" + type + "] on mapId " + Id);
            }
        }
Пример #3
0
        public void CreateUcbBox(Types type, Vector pos, Vector[] limits)
        {
            var id       = GetNextObjectId();
            var hash     = HashedObjects.Keys.ToList()[id];
            var honeyBox = HashedObjects[hash] is FakeHoneyBox;

            if (honeyBox)
            {
                Debug.WriteLine("Honey box created: " + HashedObjects.Keys.ToList()[id]);
            }
            var box = new BonusBox(id, hash, type, pos, this, limits, true, honeyBox, new Reward(RewardType.AMMO, Item.Find("ammunition_laser_ucb-100"), 1000));

            HashedObjects[hash] = box;
            if (AddObject(box))
            {
                Out.WriteLog("Created UCB Box[" + type + "] on mapId " + Id);
            }
        }
Пример #4
0
        public void CreateBox(Types type, Vector pos, Vector[] limits)
        {
            var id       = GetNextObjectId();
            var hash     = HashedObjects.Keys.ToList()[id];
            var honeyBox = HashedObjects[hash] is FakeHoneyBox;

            if (honeyBox)
            {
                Debug.WriteLine("Honey box created: " + HashedObjects.Keys.ToList()[id]);
            }
            var box = new BonusBox(id, hash, type, pos, this, limits, true, honeyBox);

            HashedObjects[hash] = box;
            if (AddObject(box))
            {
                Out.WriteLog("Created Box[" + type + "] on mapId " + Id);
            }
        }