2010/5/16のペリク鯖バックアップ

American Revolution python

最終更新:

civilization

- view
だれでも歓迎! 編集

MOD/作成情報/American Revolution python

American revolutionのpythonについて

CvEventInterface.py

ファイルがある場所
Python\EntryPoints CvEventInterface.py

# Sid Meier's Civilization 4
# Copyright Firaxis Games 2005
#
# CvEventInterface.py
#
# These functions are App Entry Points from C++
# WARNING: These function names should not be changed
# WARNING: These functions can not be placed into a class
#
# No other modules should import this
#
import CvUtil
import CvEventManager
import CvAmRevEvents
from CvPythonExtensions import *

amRevEventManager = CvAmRevEvents.CvAmRevEvents()
normalEventManager = CvEventManager.CvEventManager()

def getEventManager():

return amRevEventManager

def onEvent(argsList):
	'Called when a game event happens - return 1 if the event was consumed'
	return getEventManager().handleEvent(argsList)

def applyEvent(argsList):
	context, playerID, netUserData, popupReturn = argsList
	return getEventManager().applyEvent(argsList)

def beginEvent(context, argsList=-1):
	return getEventManager().beginEvent(context, argsList)

メモ

  • CvAmRevEvents.pyが読み込まれている
  • getEventManager()の時にCvAmRevEvents.CvAmRevEvents()が呼び出されている

CvDawnOfMan.py

Python\Screens CvDawnOfMan.py

CvTechChooser.py

Python\Screens CvTechChooser.py

CvAmRevEvents.py

Python CvAmRevEvents.py

CvGameUtils.py

Python CvGameUtils.py

タグ:

+ タグ編集
  • タグ:
記事メニュー
ウィキ募集バナー