예제 #1
0
        public override BaseItem FactoreNewItem(ISData data, INSData nsData)
        {
            ResourceItem newItem = new ResourceItem(data.SDeepClone() as ISData, nsData.NSDeepClone() as ResourceNSData);

            // In Case database default values get overriten, set them back here to default
            newItem.BaseData.UniqueUUID = System.Guid.NewGuid().ToString();
            newItem.BaseData.SlotID     = -1;
            return(newItem);
        }
예제 #2
0
 public ResourceItem(ISData _data, INSData _nsData) : base(_data, _nsData)
 {
     BaseData   = _data;
     BaseNSData = _nsData;
     Init();
 }
예제 #3
0
 public abstract BaseItem FactoreNewItem(ISData data, INSData nsData);
예제 #4
0
 public BaseItem(ISData _sData, INSData _nsData)
 {
     BaseData   = _sData;
     BaseNSData = _nsData;
 }
예제 #5
0
 ///<exclude/>
 public bool Equals(INSData other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other._Tm.Equals(_Tm) && other._Latitude.Equals(_Latitude) && other._Longitude.Equals(_Longitude) && other._Altitude.Equals(_Altitude) && other._HeightAMSL.Equals(_HeightAMSL) && other._VelocityENU.Equals(_VelocityENU) && other._Orientation.Equals(_Orientation);
 }
예제 #6
0
 public AmmoItem(ISData _data, INSData _nsData) : base(_data, _nsData)
 {
     BaseData   = _data;
     BaseNSData = _nsData;
     Init();
 }