Exemplo n.º 1
0
        public void OnCreateCharacter(Client player, string data)
        {
            Player.Data        user     = playerManager.findPlayerByHandle(player);
            Database.Character charData = NAPI.Util.FromJson <Database.Character>(data);

            Character.Data newCharacter = new Character.Data(user, charData);
            OnPlayerCharacterSelect(player, newCharacter.data.id);
        }
Exemplo n.º 2
0
        public void OnPlayerCharacterSelect(Client player, long charID)
        {
            Player.Data    user      = playerManager.findPlayerByHandle(player);
            Character.Data character = playerManager.getCharacterById(charID);

            user.SetCharacter(character);
            NAPI.Player.SpawnPlayer(player, new Vector3(-53.788506, 86.40988, 73.99321));
        }