MrGravity.Game_Objects.Physics_Objects.Player.Player C# (CSharp) Метод

Player() публичный Метод

Construcs a player object, that can live in a physical realm
public Player ( Microsoft.Xna.Framework.Content.ContentManager content, PhysicsEnvironment &environment, IControlScheme controlScheme, float friction, EntityInfo entity ) : System
content Microsoft.Xna.Framework.Content.ContentManager Content manager for the game
environment PhysicsEnvironment
controlScheme IControlScheme Controller scheme for the player(Controller or keyboard)
friction float
entity MrGravity.Import_Code.EntityInfo
Результат System
        public Player(ContentManager content, ref PhysicsEnvironment environment, IControlScheme controlScheme, float friction, EntityInfo entity)
            : base(content, ref environment,friction, entity)
        {
            _mControls = controlScheme;
            SpawnPoint = MPosition;
            _mRotation = 0.0f;
            _mGoalRotation = 0.0f;

            _mFaceGoalRotation = 0.0f;
            _mFaceRotation = 0.0f;

            Id = entity.MId;

            PlayerFaces.Load(content);

            MCurrentTexture = PlayerFaces.FromString("Smile");
            MSize = new Vector2(MCurrentTexture.Width, MCurrentTexture.Height);
            _mPreviousDirection = GravityDirections.Down;
        }