Exemple #1
0
        public Data(Player.Data Owner, Database.Character charData)
        {
            data  = charData;
            owner = Owner;

            playerCharacters.Add(this, Owner);
        }
Exemple #2
0
        public void LoadPlayerCharacters(Data player)
        {
            ArrayList characters = Database.Context.Instance.getUserCharacters(player.data.id);

            if (characters.Count == 0)
            {
                NAPI.ClientEvent.TriggerClientEvent(player, "SELECTOR_NEW_CHAR");
                NAPI.Chat.SendChatMessageToPlayer(player, "Na Twoim koncie nie ma żadnej postaci.");
                return;
            }

            foreach (var chars in characters)
            {
                Database.Character data = (Database.Character)chars;
                new Character.Data(player, data);
            }
        }