Contraptions Design Specification

Section 3.14.x : Scripting

By Kenneth Manta

I miss Happydance :( Best script function ever.


Current Implementation

Script locations

The only serializable events are player ship:OnKey scripts. Network play ususaly does not need the events.

Currently Implemented Event Scripts

These scripts need special handling or are currently implemented to do so.

Better Script Design

The following objects have the following events

Objects

Events

Implementation

CScriptPtr
CScriptEvents Event;
Event(OnDestroy);
CScriptEvents uses a map from string to CScriptPtr

Future Ideas

After the game is released, start creating a lot of events.


Copyright 2004-2005 © Polyart. All rights reserved.