public LocalPlayer CreateLocalPlayer(ActiveObjectManager manager, int id, proto_server.s2c_object_init_message ao_data)
        {
            LocalPlayer localPlayer = new LocalPlayer(_World);

            localPlayer.Init(manager, id, ao_data);

            return(localPlayer);
        }
        public Player CreatePlayer(ActiveObjectManager manager, int id, proto_server.s2c_object_init_message ao_data)
        {
            Player player = new Player(_World);

            player.Init(manager, id, ao_data);

            return(player);
        }
Exemplo n.º 3
0
        public virtual void Init(ActiveObjectManager manager, int id, proto_server.s2c_object_init_message ao_data)
        {
            _ActiveObjectManager = manager;
            _ID = id;

            manager._ObjectMessageHandler.ProcessMessage(this, ao_data);

            CreateModel(ao_data);
        }