예제 #1
0
        public void Read(RakNet.BitStream stream, RakNet.Packet packet, Server server)
        {
            String heroName    = "";
            String driveString = "";
            String macString   = "";


            Vec3f pos = new Vec3f();

            stream.Read(out heroName);
            stream.Read(out driveString);
            stream.Read(out macString);
            stream.Read(out pos);


            Player player = new Player(packet.guid, heroName);

            player.DriveString = driveString;
            player.MacString   = macString;
            player.Position    = pos;
            sWorld.addVob(player);

            Write(player);
            CreateVobMessage.Write(player, packet.guid);

            Scripting.GUI.View.SendToPlayer(player);
            Scripting.Objects.Character.Player.isOnPlayerConnect((GUC.Server.Scripting.Objects.Character.Player)player.ScriptingNPC);
        }
예제 #2
0
        protected virtual void CreateVob()
        {
            if (created)
            {
                return;
            }
            CreateVobMessage.Write(vob);

            GUC.WorldObjects.sWorld.addVob(this.vob);
            created = true;
        }