@@ -321,6 +321,8 @@ class UwDiplomacyProposalComponent:
321321class UwGameConfig :
322322 ranked : bool
323323 diplomacy : bool
324+ lockedSpeed : bool
325+ cheats : bool
324326
325327@dataclass
326328class UwShootingsArray :
@@ -530,12 +532,6 @@ def uwAdminSetGameConfig(self, config: UwGameConfig) -> None:
530532 config_ = self ._UwGameConfig_pytoc (config )
531533 self ._api .uwAdminSetGameConfig (config_ )
532534
533- def uwAdminSetGameSpeed (self , speed : float ) -> None :
534- self ._api .uwAdminSetGameSpeed (speed )
535-
536- def uwAdminSetWeatherSpeed (self , speed : float , offset : float ) -> None :
537- self ._api .uwAdminSetWeatherSpeed (speed , offset )
538-
539535 def uwAdminStartGame (self ) -> None :
540536 self ._api .uwAdminStartGame ()
541537
@@ -949,6 +945,12 @@ def uwGameConfig(self) -> UwGameConfig:
949945 config_ = self ._UwGameConfig_ctopy (config )
950946 return config_
951947
948+ def uwSetGameSpeed (self , speed : float ) -> None :
949+ self ._api .uwSetGameSpeed (speed )
950+
951+ def uwSetWeatherSpeed (self , speed : float , offset : float ) -> None :
952+ self ._api .uwSetWeatherSpeed (speed , offset )
953+
952954 def uwSetGameStateCallback (self , callback : UwGameStateCallbackType ) -> None :
953955 @self ._ffi .callback ("UwGameStateCallbackType" )
954956 def c_callback (state ):
@@ -1318,12 +1320,14 @@ def _UwDiplomacyProposalComponent_ctopy(self, val) -> UwDiplomacyProposalCompone
13181320 return UwDiplomacyProposalComponent (int (val .offeror ), int (val .offeree ), UwForeignPolicyEnum (val .proposal ))
13191321
13201322 def _UwGameConfig_ctopy (self , val ) -> UwGameConfig :
1321- return UwGameConfig (bool (val .ranked ), bool (val .diplomacy ))
1323+ return UwGameConfig (bool (val .ranked ), bool (val .diplomacy ), bool ( val . lockedSpeed ), bool ( val . cheats ) )
13221324
13231325 def _UwGameConfig_pytoc (self , val : UwGameConfig ):
13241326 r = self ._ffi .new ("UwGameConfig *" )
13251327 r .ranked = val .ranked
13261328 r .diplomacy = val .diplomacy
1329+ r .lockedSpeed = val .lockedSpeed
1330+ r .cheats = val .cheats
13271331 return r
13281332
13291333 def _UwShootingsArray_ctopy (self , val ) -> UwShootingsArray :
0 commit comments