示例#1
0
    public override Player PlayerJoin(EZUDP.Server.Client c, string name)
    {
        Player p = base.PlayerJoin(c, name);

        scoreboard.SendScoreboardToPlayer(p);

        return(p);
    }
示例#2
0
    public override Player PlayerJoin(EZUDP.Server.Client c, string name)
    {
        Player p = base.PlayerJoin(c, name);

        PlayerJoinTeam(p, p.id % 2);

        p.Position = GetFreeSpawnPosition(p);
        p.SendPositionToPlayerForce(playerList);

        foreach (SYScrap s in scrapList)
        {
            if (s != null)
            {
                s.SendExistanceToPlayer(p);
            }
        }

        foreach (SYStash s in stashList)
        {
            if (s != null)
            {
                s.SendScrapAmountToPlayer(p);
            }
        }

        foreach (SYCreep e in creepList)
        {
            if (e != null)
            {
                e.SendExistanceToPlayer(p);
            }
        }

        foreach (SYTower t in towerList)
        {
            if (t != null)
            {
                t.SendExistanceToPlayer(p);
            }
        }

        return(p);
    }
示例#3
0
 public override Player CreatePlayer(int id, string name, EZUDP.Server.Client c)
 {
     return(new SYPlayer(id, name, c, Vector2.Zero, this));
 }