Editing Mod API Reference:GameOrderCustom

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
'''GameOrderCustom''':  Subclass of [[Mod API Reference:GameOrder|GameOrder]].  This order does nothing on its own, but it can be used by mods for custom orders.  GameOrderCustom is typically sent up from clients to the server, in contrast to [[Mod API Reference:GameOrderEvent|GameOrderEvent]] which is typically sent down from the server to clients.
 
'''GameOrderCustom''':  Subclass of [[Mod API Reference:GameOrder|GameOrder]].  This order does nothing on its own, but it can be used by mods for custom orders.  GameOrderCustom is typically sent up from clients to the server, in contrast to [[Mod API Reference:GameOrderEvent|GameOrderEvent]] which is typically sent down from the server to clients.
 
In order to make sure your mod doesn't break when used in conjunction with other mods, you should prepend a unique string (such as the name of your mod plus an underscore) to the Payload.  When reading a GameOrderCustom, check if the payload starts with your unique string, and if it doesn't it means this order isn't one your mod made and you should ignore it.  If you act on another mod's messages, or skip them, it will create unexpected behavior for your mod or another mod.
 
 
 
* '''Message''' ''string'': The message that will appear in the orders list.  This is what players see.
 
* '''Message''' ''string'': The message that will appear in the orders list.  This is what players see.
 
* '''Payload''' ''string'': Data the mod wishes to store along with this order, but does not want players to see.
 
* '''Payload''' ''string'': Data the mod wishes to store along with this order, but does not want players to see.

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox