Пример #1
0
 public HumanInformations(
     ActorRestrictionsInformations restrictions,
     bool sex,
     List <HumanOption> options
     )
 {
     Restrictions = restrictions;
     Sex          = sex;
     Options      = options;
 }
Пример #2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            Restrictions = new ActorRestrictionsInformations();
            Restrictions.Deserialize(reader);
            Sex = reader.ReadBoolean();
            var countOptions = reader.ReadShort();

            Options = new List <HumanOption>();
            for (short i = 0; i < countOptions; i++)
            {
                var         optionstypeId = reader.ReadShort();
                HumanOption type          = new HumanOption();
                type.Deserialize(reader);
                Options.Add(type);
            }
        }