private void ActionKeyMappingOpenCharacter_ActionTriggered(object sender, ActionTriggeredEventArgs e) { if (world.PlayerCharacter == null) { return; } if (world.PlayerCharacter.Powers == null) { return; } //if (world.PlayerCharacter.IsDead) // return; CharacterScreen characterScreen = new CharacterScreen(); characterScreen.Character = world.PlayerCharacter; characterScreen.Initialize(this.Manager); characterScreen.Activate(); //inventoryScreen.Player = world.PlayerCharacter; //inventoryScreen.BaseContainer = (BagClientItem)world.PlayerCharacter.Inventory; //new ClientBagItem((BagItem)world.GetItem(world.PlayerCharacter.InventoryBagId)); //inventoryScreen.GroundItems = world.GroundItemsInRange(world.PlayerCharacter.Id); //inventoryScreen.Activate(); }