コード例 #1
0
ファイル: HumanInformations.cs プロジェクト: Riul/emulator
 public virtual void Deserialize(BigEndianReader reader)
 {
     Restrictions = new ActorRestrictionsInformations();
     Restrictions.Deserialize(reader);
     Sex = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     Options = new HumanOption[limit];
     for (int i = 0; i < limit; i++)
     {
         Options[i] = Types.ProtocolTypeManager.GetInstance<HumanOption>(reader.ReadShort());
         Options[i].Deserialize(reader);
     }
 }
コード例 #2
0
 public override void Deserialize(BigEndianReader reader)
 {
     Restrictions = new ActorRestrictionsInformations();
     Restrictions.Deserialize(reader);
 }
コード例 #3
0
 public SetCharacterRestrictionsMessage(ActorRestrictionsInformations restrictions)
 {
     Restrictions = restrictions;
 }
コード例 #4
0
ファイル: HumanInformations.cs プロジェクト: Riul/emulator
 public HumanInformations(ActorRestrictionsInformations restrictions, bool sex, HumanOption[] options)
 {
     Restrictions = restrictions;
     Sex = sex;
     Options = options;
 }