protected PropDefinition(LoadInfo info) { Name = info.GetString("Name"); PrettyName = info.GetString("PrettyName"); BrowserPath = info.GetString("BrowserPath"); simObject = info.GetValue <SimObjectDefinition>("SimObject"); trackInfo = info.GetValue <ShowPropTrackInfo>("TrackInfo"); if (info.hasValue("PropLicenseId")) { PropLicenseId = info.GetInt64("PropLicenseId"); } }
public bool tryGetTrackInfo(String propTypeName, out ShowPropTrackInfo propTrackInfo) { PropDefinition propDef; bool found = false; propTrackInfo = null; if (prototypes.TryGetValue(propTypeName, out propDef)) { found = true; propTrackInfo = propDef.TrackInfo; } return(found); }
public PropDefinition(SimObjectDefinition simObject) { PrettyName = Name = simObject.Name; this.simObject = simObject; trackInfo = new ShowPropTrackInfo(); }