Game Engine Architecture
799 particular machine; all the other machines have a lightweight version of the object known as a remote proxy. When you mark a ...
800 14. Runtime Gameplay Foundation Systems Lua provides a convenient interface to the C language—the Lua virtual machine can ca ...
801 z Extensive standard libraries and third-party modules. Python libraries exist for virtually every task imaginable. (Really! ...
802 14. Runtime Gameplay Foundation Systems Pawn was designed to have a small memory footprint and to execute its byte code very ...
803 tended even to the point of allowing entirely new types of game objects to be defi ned in script. This might be done via inh ...
804 14. Runtime Gameplay Foundation Systems usually equally important for script code to be capable of initiating operations wit ...
805 Once the engine has a pointer to a chunk of script lambda byte code , it can execute the code by calling a function in the e ...
806 14. Runtime Gameplay Foundation Systems // Get the next instruction. We will never run // out, because the return instructio ...
807 // Other math operations... case DC_CALL_SCRIPT_LAMBDA: { // Determine in which register the name of // the script lambda to ...
808 14. Runtime Gameplay Foundation Systems in some suitable way and that the global function DcLookUpByteCode() is capable of l ...
809 if (argCount != 1) { DcErrorMessage("get-object-pos: Invalid arg count.\n"); return result; } if (aArgs[0].GetType() != Vari ...
810 14. Runtime Gameplay Foundation Systems object by calling native functions and passing the object’s handle as an argu- ment. ...
811 Events are usually sent to individual objects and handled within the con- text of that object. Hence scripted event handlers ...
812 14. Runtime Gameplay Foundation Systems 14.8.5.5. Object-Oriented Scripting Languages Some scripting languages are inherentl ...
813 appropriate event handler on the scripted component, thus giving the script programmer an opportunity to modify or extend th ...
814 14. Runtime Gameplay Foundation Systems which the execution of any script could be interrupted at any time to permit another ...
815 // OK, the door is open. Tell the other threads. RaiseSignal("DoorOpen"); // Now walk thru the door. CharacterWalkToPoint(gu ...
816 14. Runtime Gameplay Foundation Systems the named fl ag’s value changes to true. Other threads can go to sleep, wait- ing fo ...
817 sents a single player objective or encounter and is associated with a particular locale within the virtual game world. As th ...
...
«
34
35
36
37
38
39
40
41
42
43
»
Free download pdf