MrGravity.Import_Code.EntityInfo.CreatePlayerInfo C# (CSharp) Méthode

CreatePlayerInfo() public static méthode

public static CreatePlayerInfo ( Vector2 startLocation ) : EntityInfo
startLocation Microsoft.Xna.Framework.Vector2
Résultat EntityInfo
        public static EntityInfo CreatePlayerInfo(Vector2 startLocation)
        {
            var player = new EntityInfo("Player", startLocation);
            player.MProperties.Add("Shape", "Circle");
            player.MProperties.Add("Mass", "1");
            player.MId = -1;
            return player;
        }