Example #1
0
 public ServerInformation()
 {
     ServerName  = "";
     ServerMotd  = "";
     connectdata = new ConnectData();
     ServerPing  = new Ping_();
 }
Example #2
0
        public ClientOnServer()
        {
            float one = 1;

            entity          = new ServerEntity();
            entity.drawName = new ServerEntityDrawName();
            entity.drawName.clientAutoComplete = true;
            entity.position               = new ServerEntityPositionAndOrientation();
            entity.position.pitch         = 2 * 255 / 4;
            entity.drawModel              = new ServerEntityAnimatedModel();
            entity.drawModel.downloadSkin = true;
            Id                  = -1;
            state               = ClientStateOnServer.Connecting;
            queryClient         = true;
            received            = new List <byte>();
            Ping                = new Ping_();
            playername          = Server.invalidplayername;
            Model               = "player.txt";
            chunksseenTime      = new Dictionary <int, int>();
            heightmapchunksseen = new Dictionary <Vector2i, int>();
            IsInventoryDirty    = true;
            IsPlayerStatsDirty  = true;
            FillLimit           = 500;
            privileges          = new List <string>();
            displayColor        = "&f";
            EyeHeight           = one * 15 / 10;
            ModelHeight         = one * 17 / 10;
            WindowSize          = new int[] { 800, 600 };
            playersDirty        = new bool[128];
            for (int i = 0; i < 128; i++)
            {
                playersDirty[i] = true;
            }
            spawnedEntities      = new ServerEntityId[64];
            spawnedEntitiesCount = 64;
            updateEntity         = new bool[spawnedEntitiesCount];
        }
Example #3
0
 public ServerInformation()
 {
     ServerName = "";
     ServerMotd = "";
     connectdata = new ConnectData();
     ServerPing = new Ping_();
 }