public GatherableController(Player player, Gather gather) { Gather = gather; Player = player; }
public SpRemoveGather(Gather gather, byte despawnType = (byte) 0x01) { Gather = gather; DespawnType = despawnType; }
public SpGatherInfo(Gather gather) { Gather = gather; }
public SpGatherEnd(Player player, Gather gather, GatherEndCode endCode) { Player = player; Gather = gather; EndCode = endCode; }
public override void Init(Creature creature) { base.Init(creature); Gather = (Gather) creature; }
public SpGatherStart(Player player, Gather gather) { Player = player; Gather = gather; }
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; }
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); } } }