equal
deleted
inserted
replaced
85 bool remoteDriven; |
85 bool remoteDriven; |
86 char *ownerName; |
86 char *ownerName; |
87 } flib_team; |
87 } flib_team; |
88 |
88 |
89 /** |
89 /** |
90 * Returns a new team, or NULL on error. name must not be NULL. |
|
91 * |
|
92 * The new team is pre-filled with default settings (see hwconsts.h) |
|
93 */ |
|
94 flib_team *flib_team_create(const char *name); |
|
95 |
|
96 /** |
|
97 * Free all memory associated with the team |
90 * Free all memory associated with the team |
98 */ |
91 */ |
99 void flib_team_destroy(flib_team *team); |
92 void flib_team_destroy(flib_team *team); |
100 |
93 |
101 /** |
94 /** |
102 * Loads a team, returns NULL on error. |
95 * Loads a team, returns NULL on error. Destroy this team using flib_team_destroy. |
|
96 * This will not fill in the fields marked as "transient" in the structs above. |
103 */ |
97 */ |
104 flib_team *flib_team_from_ini(const char *filename); |
98 flib_team *flib_team_from_ini(const char *filename); |
105 |
99 |
106 /** |
100 /** |
107 * Write the team to an ini file. Attempts to retain extra ini settings |
101 * Write the team to an ini file. Attempts to retain extra ini settings |