Beispiel #1
0
 /// <summary>
 /// This gets called after deserialization
 /// </summary>
 public void InitAfterDeserialization()
 {
     //build the hash from the name mapping
     foreach (StationInfo i in stationInfo)
     {
         stationHash[i.name] = i.index;
     }
     stationArray = new StationArray(stationInfo);
 }
Beispiel #2
0
        /// <summary>
        /// A private constructor.
        /// </summary>
        private InterSense()
        {
            identifier   = "InterSense";
            curStationID = 0;

            connInfo = null;

            stationInfo = new StationInfo[ISDllBridge.ISD_MAX_STATIONS];
            for (int i = 0; i < stationInfo.Length; i++)
            {
                stationInfo[i] = new StationInfo("InterSenseStation" + i, i, Matrix.CreateTranslation(0, -0.1524f, -0.1397f));
                stationHash[stationInfo[i].name] = stationInfo[i].index;
            }
            stationArray = new StationArray(stationInfo);
        }