Example #1
0
 public RadarBlip(RadarBlip other)
 {
     Color             = other.Color;
     Type              = other.Type;
     EntityHandle      = other.EntityHandle;
     RadarPosition     = other.RadarPosition;
     MarkerPosition    = other.MarkerPosition;
     Index             = other.Index;
     IsBright          = other.IsBright;
     IsInUse           = other.IsInUse;
     DebugSphereRadius = other.DebugSphereRadius;
     Scale             = other.Scale;
     Display           = other.Display;
     Sprite            = other.Sprite;
 }
Example #2
0
        protected override void ReadData(DataBuffer buf, FileFormat fmt)
        {
            Color             = buf.ReadInt32();
            Type              = (RadarBlipType)buf.ReadInt32();
            EntityHandle      = buf.ReadInt32();
            RadarPosition     = buf.ReadStruct <Vector2>();
            MarkerPosition    = buf.ReadStruct <Vector3>();
            Index             = buf.ReadInt16();
            IsBright          = buf.ReadBool();
            IsInUse           = buf.ReadBool();
            DebugSphereRadius = buf.ReadFloat();
            Scale             = buf.ReadInt16();
            Display           = (RadarBlipDisplay)buf.ReadInt16();
            Sprite            = (RadarBlipSprite)buf.ReadInt16();
            buf.ReadInt16();

            Debug.Assert(buf.Offset == SizeOfType <RadarBlip>());
        }