mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Build 912
This commit is contained in:
@ -5480,6 +5480,22 @@ This event record is used to pass a ptKey variable to another python program"""
|
||||
|
||||
def addVarNumber(self,name,number):
|
||||
"""Add a number variable event record to the Notify message
|
||||
Method will try to pick appropriate variable type
|
||||
This event record is used to pass a number variable to another python program"""
|
||||
pass
|
||||
|
||||
def addVarFloat(self,name,number):
|
||||
"""Add a float variable event record to the Notify message
|
||||
This event record is used to pass a number variable to another python program"""
|
||||
pass
|
||||
|
||||
def addVarInt(self,name,number):
|
||||
"""Add a integer variable event record to the Notify message
|
||||
This event record is used to pass a number variable to another python program"""
|
||||
pass
|
||||
|
||||
def addVarNull(self,name):
|
||||
"""Add a null (no data) variable event record to the Notify message
|
||||
This event record is used to pass a number variable to another python program"""
|
||||
pass
|
||||
|
||||
|
@ -215,8 +215,10 @@ class PtNotificationType:
|
||||
|
||||
class PtNotifyDataType:
|
||||
"""(none)"""
|
||||
kNumber = 1
|
||||
kFloat = 1
|
||||
kKey = 2
|
||||
kInt = 3
|
||||
kNull = 4
|
||||
|
||||
class PtSDLReadWriteOptions:
|
||||
"""(none)"""
|
||||
|
@ -69,7 +69,7 @@ kOfferLinkingBook=PtEventType.kOfferLinkingBook # [1]=offerer, [2]=link panel ID
|
||||
|
||||
|
||||
# OnNotify Var Event Data Types
|
||||
kVarNumberType=PtNotifyDataType.kNumber
|
||||
kVarNumberType=PtNotifyDataType.kFloat
|
||||
kVarKeyType=PtNotifyDataType.kKey
|
||||
# OnNotify MultiStageEvent - what event types
|
||||
kEnterStage=PtMultiStageEventType.kEnterStage
|
||||
@ -179,8 +179,12 @@ def PtAddEvent(notify,event):
|
||||
elif event[0] == kControlKeyEvent:
|
||||
notify.addControlKeyEvent(event[1],event[2])
|
||||
elif event[0] == kVariableEvent:
|
||||
if event[2] == kVarNumberType:
|
||||
notify.addVarNumber(event[1],event[3])
|
||||
if event[2] == PtNotifyDataType.kFloat:
|
||||
notify.addVarFloat(event[1],event[3])
|
||||
elif event[2] == PtNotifyDataType.kInt:
|
||||
notify.addVarInt(event[1],event[3])
|
||||
elif event[2] == PtNotifyDataType.kNull:
|
||||
notify.addVarNull(event[1])
|
||||
elif event[2] == kVarKeyType:
|
||||
notify.addVarKey(event[1],event[3])
|
||||
elif event[0] == kFacingEvent:
|
||||
|
Reference in New Issue
Block a user