Example #1
0
        private Character(IOutputter outputter, string nickname) : base(null, outputter)
        {
            properties.Add(StrProperty.Create("strFirstName", "New"));
            properties.Add(StrProperty.Create("strLastName", "Character"));
            properties.Add(StrProperty.Create("strNickName"));
            properties.Add(NameProperty.Create("CharacterTemplateName", "Soldier"));
            properties.Add(NameProperty.Create("m_SoldierClassTemplateName", "Rookie"));
            properties.Add(NameProperty.Create("Country", "Country_USA"));
            var appearance = Appearance.CreateAppearanceProperty();

            properties.Add(appearance);
            Appearance = new Appearance(outputter, appearance.Properties.Properties);
            properties.Add(BoolProperty.Create("AllowedTypeSoldier", true));
            properties.Add(BoolProperty.Create("AllowedTypeVIP"));
            properties.Add(BoolProperty.Create("AllowedTypeDarkVIP"));
            properties.Add(StrProperty.Create("PoolTimestamp", DateTime.Now.ToString("MMMM d, yyyy - h:m tt")));
            properties.Add(StrProperty.Create("BackgroundText"));
            NickName.Data = $"'{nickname}'";
            IsDirty       = true;
        }
 private CPool(IOutputter outputter) : this(null, outputter)
 {
     properties.Add(ArrayProperty.Create("CharacterPool", 0));
     properties.Add(StrProperty.Create("PoolFileName", "Unsaved Pool"));
     IsDirty = true;
 }