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); }
public ResourceItem(ISData _data, INSData _nsData) : base(_data, _nsData) { BaseData = _data; BaseNSData = _nsData; Init(); }
public abstract BaseItem FactoreNewItem(ISData data, INSData nsData);
public BaseItem(ISData _sData, INSData _nsData) { BaseData = _sData; BaseNSData = _nsData; }
///<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); }
public AmmoItem(ISData _data, INSData _nsData) : base(_data, _nsData) { BaseData = _data; BaseNSData = _nsData; Init(); }