Example #1
0
        public void CopyFrom(Appearance from)
        {
            if (from == null)
            {
                return;
            }

            NotUsed1       = from.NotUsed1;
            NotUsed2       = from.NotUsed2;
            HairR          = from.HairR;
            HairG          = from.HairG;
            HairB          = from.HairB;
            MovementFlags  = from.MovementFlags;
            EntityFlags    = from.EntityFlags;
            Scale          = from.Scale;
            BoundingRadius = from.BoundingRadius;
            BoundingHeight = from.BoundingHeight;
            HeadModel      = from.HeadModel;
            HairModel      = from.HairModel;
            HandModel      = from.HandModel;
            FootModel      = from.FootModel;
            BodyModel      = from.BodyModel;
            BackModel      = from.BackModel;
            ShoulderModel  = from.ShoulderModel;
            WingModel      = from.WingModel;
            HeadScale      = from.HeadScale;
            BodyScale      = from.BodyScale;
            HandScale      = from.HandScale;
            FootScale      = from.FootScale;
            ShoulderScale  = from.ShoulderScale;
            WeaponScale    = from.WeaponScale;
            BackScale      = from.BackScale;
            Unknown        = from.Unknown;
            WingScale      = from.WingScale;
            BodyPitch      = from.BodyPitch;
            ArmPitch       = from.ArmPitch;
            ArmRoll        = from.ArmRoll;
            ArmYaw         = from.ArmYaw;
            FeetPitch      = from.FeetPitch;
            WingPitch      = from.WingPitch;
            BackPitch      = from.BackPitch;
            BodyOffset     = from.BodyOffset.Clone();
            HeadOffset     = from.HeadOffset.Clone();
            HandOffset     = from.HandOffset.Clone();
            FootOffset     = from.FootOffset.Clone();
            BackOffset     = from.BackOffset.Clone();
            WingOffset     = from.WingOffset.Clone();
        }
Example #2
0
        public void CopyFrom(Appearance from)
        {
            if (from == null) return;

            NotUsed1 = from.NotUsed1;
            NotUsed2 = from.NotUsed2;
            HairR = from.HairR;
            HairG = from.HairG;
            HairB = from.HairB;
            MovementFlags = from.MovementFlags;
            EntityFlags = from.EntityFlags;
            Scale = from.Scale;
            BoundingRadius = from.BoundingRadius;
            BoundingHeight = from.BoundingHeight;
            HeadModel = from.HeadModel;
            HairModel = from.HairModel;
            HandModel = from.HandModel;
            FootModel = from.FootModel;
            BodyModel = from.BodyModel;
            BackModel = from.BackModel;
            ShoulderModel = from.ShoulderModel;
            WingModel = from.WingModel;
            HeadScale = from.HeadScale;
            BodyScale = from.BodyScale;
            HandScale = from.HandScale;
            FootScale = from.FootScale;
            ShoulderScale = from.ShoulderScale;
            WeaponScale = from.WeaponScale;
            BackScale = from.BackScale;
            Unknown = from.Unknown;
            WingScale = from.WingScale;
            BodyPitch = from.BodyPitch;
            ArmPitch = from.ArmPitch;
            ArmRoll = from.ArmRoll;
            ArmYaw = from.ArmYaw;
            FeetPitch = from.FeetPitch;
            WingPitch = from.WingPitch;
            BackPitch = from.BackPitch;
            BodyOffset = from.BodyOffset.Clone();
            HeadOffset = from.HeadOffset.Clone();
            HandOffset = from.HandOffset.Clone();
            FootOffset = from.FootOffset.Clone();
            BackOffset = from.BackOffset.Clone();
            WingOffset = from.WingOffset.Clone();
        }
Example #3
0
        // TODO Fix ctor
        public Entity(Coob coob, Client owner)
        {
            Client        = owner;
            Position      = new QVector3();
            Rotation      = new Vector3();
            Velocity      = new Vector3();
            Acceleration  = new Vector3();
            ExtraVelocity = new Vector3();
            Appearance    = new Appearance();
            RayHit        = new Vector3();
            ItemData      = new Item();

            Equipment = new Item[EquipmentCount];
            for (int i = 0; i < EquipmentCount; i++)
            {
                Equipment[i] = new Item();
            }

            Skills = new uint[SkillCount];
        }
Example #4
0
        public Entity()
        {
            Position = new QVector3();
            Rotation = new Vector3();
            Velocity = new Vector3();
            Acceleration = new Vector3();
            ExtraVelocity = new Vector3();

            Appearance = new Appearance();

            RayHit = new Vector3();

            ItemData = new Item();

            Equipment = new Item[13];
            for (int i = 0; i < 13; i++)
                Equipment[i] = new Item();

            Skills = new uint[11];
        }