Example #1
0
 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");
     }
 }
Example #2
0
        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);
        }
Example #3
0
 public PropDefinition(SimObjectDefinition simObject)
 {
     PrettyName     = Name = simObject.Name;
     this.simObject = simObject;
     trackInfo      = new ShowPropTrackInfo();
 }