Esempio n. 1
0
        public void Add(UpdateProp other)
        {
            var otherType = other.Type;

            if (otherType.IsFlagSet(UpdateType.Color))
            {
                type  = type.SetFlags(UpdateType.Color);
                color = other.color;
            }
            if (otherType.IsFlagSet(UpdateType.Position))
            {
                type     = type.SetFlags(UpdateType.Position);
                position = other.position;
            }
            if (otherType.IsFlagSet(UpdateType.Rotation))
            {
                type     = type.SetFlags(UpdateType.Rotation);
                rotation = other.rotation;
            }
            if (otherType.IsFlagSet(UpdateType.Scale))
            {
                type  = type.SetFlags(UpdateType.Scale);
                scale = other.scale;
            }
        }
Esempio n. 2
0
 public UpdateProp(UpdateProp other)
 {
     id       = other.id;
     type     = other.type;
     color    = other.color;
     position = other.position;
     rotation = other.rotation;
     scale    = other.scale;
 }