Bazaar developer reference

CvLuaDeal::PushMethods(lua_State *, int)

Defined in
Lua/CvLuaDeal.cpp, line 23
Class
CvLuaDeal
Hook name
CivHooks::CvLuaDeal_PushMethods

Hooks

static bool BeforeCvLuaDeal_PushMethods(lua_State* L, int t);static void AfterCvLuaDeal_PushMethods(lua_State* L, int t);static void ReplaceCvLuaDeal_PushMethods(void (*original)(lua_State*, int), lua_State* L, int t);CivRegisterBefore<CivHooks::CvLuaDeal_PushMethods>(host, &BeforeCvLuaDeal_PushMethods);CivRegisterAfter<CivHooks::CvLuaDeal_PushMethods>(host, &AfterCvLuaDeal_PushMethods);CivRegisterReplace<CivHooks::CvLuaDeal_PushMethods>(host, &ReplaceCvLuaDeal_PushMethods);

Code

23void CvLuaDeal::PushMethods(lua_State* L, int t)24{25	Method(ClearItems);26	Method(GetNumItems);2728	Method(GetStartTurn);29	Method(GetEndTurn);30	Method(GetDuration);3132	Method(GetOtherPlayer);33	Method(GetFromPlayer);34	Method(GetToPlayer);35	Method(SetFromPlayer);36	Method(SetToPlayer);3738	Method(GetSurrenderingPlayer);39	Method(SetSurrenderingPlayer);40	Method(GetDemandingPlayer);41	Method(SetDemandingPlayer);42	Method(GetRequestingPlayer);43	Method(SetRequestingPlayer);4445	Method(ResetIterator);46	Method(GetNextItem);4748	Method(GetGoldAvailable);4950	Method(IsPossibleToTradeItem);51	Method(GetNumResource);5253	Method(AddGoldTrade);54	Method(AddGoldPerTurnTrade);55	Method(AddMapTrade);56	Method(AddResourceTrade);57	Method(AddCityTrade);58	Method(AddUnitTrade);59	Method(AddAllowEmbassy);60	Method(AddOpenBorders);61	Method(AddDefensivePact);62	Method(AddResearchAgreement);63	Method(AddTradeAgreement);64	Method(AddPermamentAlliance);65	Method(AddSurrender);66	Method(AddTruce);67	Method(AddPeaceTreaty);68	Method(AddThirdPartyPeace);69	Method(AddThirdPartyWar);70	Method(AddThirdPartyEmbargo);71	Method(AddDeclarationOfFriendship);72	Method(AddVoteCommitment);7374	Method(RemoveByType);75	Method(RemoveResourceTrade);76	Method(RemoveCityTrade);77	Method(RemoveUnitTrade);78	Method(RemoveThirdPartyPeace);79	Method(RemoveThirdPartyWar);80	Method(RemoveThirdPartyEmbargo);81	Method(RemoveVoteCommitment);8283	Method(ChangeGoldTrade);84	Method(ChangeGoldPerTurnTrade);85	Method(ChangeResourceTrade);86	Method(ChangeThirdPartyWarDuration);87	Method(ChangeThirdPartyPeaceDuration);88	Method(ChangeThirdPartyEmbargoDuration);89}

Calls