Code: Show/Hide void (*addDrone) ( void (*aiFunc)(DroneData data, DroneSettings *ds, DroneAction* action, byte* perDroneData), // packet function void (*actionFunction) (Player *p, const char *params, const Target* target, byte* perDroneData), // ?drone <param> function const char *name, // name used for when buying the drone const char *aboutText, // ?drone about text const char *helpText, // ?drone help extra text u32 bytesToAllocate, // amount of per drone data (int bytes) to allocate, use 0 to not allocate any memory int bulletlevel, // 1-3 int bomblevel, // 1, for now int cost // how much does it cost to ?buy your drone ); void (*removeDrone) ( const char *name ); // remove the drone with this name, used during your modules unloading // These next functions are how the server interacts with the drone modules, don't use these when designing your AI: void (*sendDroneCostInfo) (Player *p); // send the cost information to a player BOOL (*isDroneOwner) (Player *p); // is this player a drone owner? int (*getCost) (const char *type); // returns cost or -1 if not found BOOL (*spawnDrone) (Player *p, const char *type); // spawn a drone at the player's current position, true iff found type and spawned |