resonance 1.0.1
Loading...
Searching...
No Matches
idable.h File Reference
#include <vector>
#include "game/idablebase.h"
Include dependency graph for idable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IDable< T >
 Mix-in that registers its most derived object in a per-type identifier table. More...

Variables

constexpr int kIDableInitialSlots = 4
 Slots each identifier table starts with, one per player.

Variable Documentation

◆ kIDableInitialSlots

int kIDableInitialSlots = 4
constexpr

Slots each identifier table starts with, one per player.

The static initialiser at 0x00132618 allocates four null pointers and the table never grows. Identifiers 0 to 3 are the only ones a constructor can register.