private async Task loadCharacters(IGame game) { InventoryItems items = new InventoryItems(); await items.LoadAsync(game.Factory); Beman beman = new Beman(); var character = await beman.LoadAsync(game); var room = await Rooms.BrokenCurbStreet; await character.ChangeRoomAsync(room, 100, 110); Characters.Init(game); }
private async Task loadCharacters(IGame game) { ICharacter character = game.State.Player; KeyboardMovement movement = new KeyboardMovement(character, game.Input, game.State.FocusedUI, KeyboardMovementMode.Pressing); movement.AddArrows(); movement.AddWASD(); InventoryItems items = new InventoryItems(); await items.LoadAsync(game.Factory); Beman beman = new Beman(); character = await beman.LoadAsync(game); var room = await Rooms.BrokenCurbStreet; await character.ChangeRoomAsync(room, 100, 110); Characters.Init(game); }