// Read this object from message-in internal override bool Read(BinaryReader binaryReader, EndPoint senderEndPoint, int gameVersion) { if (base.Read(binaryReader, senderEndPoint, gameVersion) == false) return NetworkError(); // Armor Type MyMwcObjectBuilder_SmallShip_Armor_TypesEnum? armorType = MyMwcMessageIn.ReadObjectBuilderSmallShipArmorTypesEnumEx(binaryReader, senderEndPoint); if (armorType == null) return NetworkError(); ArmorType = armorType.Value; MyMwcLog.IfNetVerbose_AddToLog("ArmorType: " + ArmorType); return true; }
// Read this object from message-in internal override bool Read(BinaryReader binaryReader, EndPoint senderEndPoint, int gameVersion) { if (base.Read(binaryReader, senderEndPoint, gameVersion) == false) { return(NetworkError()); } // Armor Type MyMwcObjectBuilder_SmallShip_Armor_TypesEnum?armorType = MyMwcMessageIn.ReadObjectBuilderSmallShipArmorTypesEnumEx(binaryReader, senderEndPoint); if (armorType == null) { return(NetworkError()); } ArmorType = armorType.Value; MyMwcLog.IfNetVerbose_AddToLog("ArmorType: " + ArmorType); return(true); }
internal override void SetObjectBuilderIdInternal(int?objectBuilderId) { ArmorType = (MyMwcObjectBuilder_SmallShip_Armor_TypesEnum)Convert.ToUInt16(objectBuilderId); }
public MyMwcObjectBuilder_SmallShip_Armor(MyMwcObjectBuilder_SmallShip_Armor_TypesEnum armorType) { ArmorType = armorType; }
internal override void SetObjectBuilderIdInternal(int? objectBuilderId) { ArmorType = (MyMwcObjectBuilder_SmallShip_Armor_TypesEnum)Convert.ToUInt16(objectBuilderId); }
public static MySmallShipArmorTypeProperties GetProperties(MyMwcObjectBuilder_SmallShip_Armor_TypesEnum armorType) { return ArmorProperties[(int)armorType]; }
public static void WriteObjectBuilderSmallShipArmorTypesEnum(MyMwcObjectBuilder_SmallShip_Armor_TypesEnum val, BinaryWriter binaryWriter) { binaryWriter.Write((ushort)val); }
public static MySmallShipArmorTypeProperties GetProperties(MyMwcObjectBuilder_SmallShip_Armor_TypesEnum armorType) { return(ArmorProperties[(int)armorType]); }