void IDiplomaticRelationManagment.SetDiplomaticRelationState(DiplomaticRelationState diplomaticRelationState) { IGameService service = Services.GetService <IGameService>(); Diagnostics.Assert(service != null); global::Game game = service.Game as global::Game; Diagnostics.Assert(game != null); this.State = diplomaticRelationState; this.TurnAtTheBeginningOfTheState = game.Turn; }
private void RefreshRelationState(AgeTransform slot, DiplomaticRelationState diplomaticRelationState, int index) { global::Game x = base.Game as global::Game; Diagnostics.Assert(x != null); if (this.diplomaticRelationsViewport != null) { string diplomaticRelationName = diplomaticRelationState.Name; Bounds iconBound = this.diplomaticRelationsViewport.GetIconBound(diplomaticRelationName); slot.GetComponent <RelationStateItem>().RefreshContentWith3DView(diplomaticRelationState, iconBound); } }