예제 #1
0
 public FlagType(string name, string abbv, FlagEndurances _endurance, ShotTypes sType, FlagQualities quality, TeamColors team, string help)
 {
     FlagName      = name;
     FlagAbbv      = abbv;
     FlagEndurance = _endurance;
     FlagShot      = sType;
     FlagQuality   = quality;
     FlagTeam      = team;
     FlagHelp      = help;
     Custom        = false;
 }
예제 #2
0
        public override void Unpack(byte[] data)
        {
            Reset(data);

            Abreviation = ReadFixedSizeString(2);
            Quality     = (FlagQualities)ReadByte();
            ShotType    = (ShotTypes)ReadByte();

            Name     = ReadULongPascalString();
            HelpText = ReadULongPascalString();
        }