public MyHarvestOreSubmission(MyTextsWrapperEnum name, MyMissionID id, MyTextsWrapperEnum description, MyTexture2D icon, MyMission parentMission, MyMissionID[] requiredMissions, MyMissionLocation location, MyMwcObjectBuilder_Ore_TypesEnum ore, float amount, MyDialogueEnum successDialogId) : base(name, id, description, icon, parentMission, requiredMissions, null, successDialogId: successDialogId) { Location = location; m_amount = amount; m_ore = ore; }
private static void Add(MyMwcVoxelMaterialsEnum voxelMaterial, MyMwcObjectBuilder_Ore_TypesEnum? ore, float percents) { MaterialProperties.Add((int)voxelMaterial, new MyMwcVoxelMaterialProperties { Ore = ore, Percents = percents }); }
// 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()); } // Ore Type MyMwcObjectBuilder_Ore_TypesEnum?oreType = MyMwcMessageIn.ReadObjectBuilderOreTypesEnumEx(binaryReader, senderEndPoint); if (oreType == null) { return(NetworkError()); } OreType = oreType.Value; MyMwcLog.IfNetVerbose_AddToLog("OreType: " + OreType); return(true); }
public MyOreRatioFromVoxelMaterial(MyMwcObjectBuilder_Ore_TypesEnum oreType, float ratio) { OreType = oreType; Ratio = ratio; }
// 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(); // Ore Type MyMwcObjectBuilder_Ore_TypesEnum? oreType = MyMwcMessageIn.ReadObjectBuilderOreTypesEnumEx(binaryReader, senderEndPoint); if (oreType == null) return NetworkError(); OreType = oreType.Value; MyMwcLog.IfNetVerbose_AddToLog("OreType: " + OreType); return true; }
internal override void SetObjectBuilderIdInternal(int? objectBuilderId) { OreType = (MyMwcObjectBuilder_Ore_TypesEnum)Convert.ToUInt16(objectBuilderId); }
public MyMwcObjectBuilder_Ore(MyMwcObjectBuilder_Ore_TypesEnum oreType) { OreType = oreType; }
public static void WriteObjectBuilderOreTypesEnum(MyMwcObjectBuilder_Ore_TypesEnum val, BinaryWriter binaryWriter) { binaryWriter.Write((ushort)val); }
internal override void SetObjectBuilderIdInternal(int?objectBuilderId) { OreType = (MyMwcObjectBuilder_Ore_TypesEnum)Convert.ToUInt16(objectBuilderId); }