private void ReadDetailsCommand() { if (this.details.Command == DetailCommand.PickEntity) { EntitySelector.PickEntity(this.details.Entity); this.details = null; } else if (this.details.Command == DetailCommand.GatherResource) { ((IResourceProvider)this.details.Entity).Gather(5); } else if (this.details.Command == DetailCommand.Close) { this.details = null; } }