Пример #1
0
 public void SetDescription(L10NSimple description)
 {
     if (description != null)
     {
         Description = description.ToSerealizeString();
     }
 }
Пример #2
0
        public void Init(NpcUser npc, L10NSimple description = null, Label img = null)
        {
            NpcAllianceId npcAllianceId;

            Enum.TryParse(npc.Nickname, true, out npcAllianceId);
            Id          = (int)npcAllianceId;
            Name        = npc.Nickname;
            CreatorId   = npc.Id;
            CreatorName = npc.Nickname;
            DateCreate  = npc.DateCreate;
            Description = (description == null) ? new L10NSimple().ToSerealizeString() : description.ToSerealizeString();
            Images      = img ?? Label.DefaultUrls();
            Disbandet   = false;
            //  UserImagesDirectory.CheckUserDirectory(Label.Type, Id);
        }