Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FullEntityState other = (FullEntityState)obj;

            if (EntityType != other.EntityType)
            {
                return(false);
            }

            if (!Position.Equals(other.Position))
            {
                return(false);
            }

            if (!Rotation.Equals(other.Rotation))
            {
                return(false);
            }

            if (ModelIndex != other.ModelIndex)
            {
                return(false);
            }

            if (ModelLocation != other.ModelLocation)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
 public BaseEntityState(FullEntityState fullState)
 {
     Type = EntityStateType.Base;
     ID   = fullState.ID;
 }