Ejemplo n.º 1
0
 public GatherableController(Player player, Gather gather)
 {
     Gather = gather;
     Player = player;
 }
Ejemplo n.º 2
0
 public SpRemoveGather(Gather gather, byte despawnType = (byte) 0x01)
 {
     Gather = gather;
     DespawnType = despawnType;
 }
Ejemplo n.º 3
0
 public SpGatherInfo(Gather gather)
 {
     Gather = gather;
 }
Ejemplo n.º 4
0
 public SpGatherEnd(Player player, Gather gather, GatherEndCode endCode)
 {
     Player = player;
     Gather = gather;
     EndCode = endCode;
 }
Ejemplo n.º 5
0
        public override void Init(Creature creature)
        {
            base.Init(creature);

            Gather = (Gather) creature;
        }
Ejemplo n.º 6
0
 public SpGatherStart(Player player, Gather gather)
 {
     Player = player;
     Gather = gather;
 }
Ejemplo n.º 7
0
        public Gather CreateGather(GSpawnTemplate gSpawn)
        {
            var gather = new Gather
            {
                Id = gSpawn.CollectionId,
                Position = new WorldPosition
                {
                    MapId = gSpawn.WorldPosition.MapId,
                    X = gSpawn.WorldPosition.X,
                    Y = gSpawn.WorldPosition.Y,
                    Z = gSpawn.WorldPosition.Z + 10,
                },
                CurrentGatherCounter = new Random().Next(1, 3), //todo gather counter
            };

            AiLogic.InitAi(gather);

            return gather;
        }
Ejemplo n.º 8
0
 private void CheckGather(Gather gather)
 {
     if(IsVisible(Player, gather))
     {
         if (!Player.VisibleGathers.Contains(gather))
         {
             Player.VisibleGathers.Add(gather);
             gather.VisiblePlayers.Remove(Player);
             PlayerLogic.InTheVision(Player, gather);
         }
     }
     else
     {
         if (Player.VisibleGathers.Contains(gather))
         {
             Player.VisibleGathers.Remove(gather);
             gather.VisiblePlayers.Remove(Player);
             PlayerLogic.OutOfVision(Player, gather);
         }
     }
 }