Changeset 432
- Timestamp:
- Jul 16, 2009, 10:49:08 AM (15 years ago)
- Location:
- Daodan/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_Character.c
r431 r432 18 18 void CHARTest() 19 19 { 20 CharacterObject * TestCHAR = malloc(sizeof(CharacterObject));21 memset( TestCHAR, 0, sizeof(CharacterObject));20 CharacterObject TestCHAR; 21 memset(&TestCHAR, 0, sizeof(CharacterObject)); 22 22 23 memcpy(TestCHAR ->Header.Type, "CHAR", 4);24 memcpy(TestCHAR ->OSD.Name, "Gumby", 6);25 memcpy(TestCHAR ->OSD.Class, "muro_generic", 13);26 TestCHAR ->OSD.TeamID = team_syndicate;23 memcpy(TestCHAR.Header.Type, "CHAR", 4); 24 memcpy(TestCHAR.OSD.Name, "Gumby", 6); 25 memcpy(TestCHAR.OSD.Class, "muro_generic", 13); 26 TestCHAR.OSD.TeamID = team_syndicate; 27 27 28 ONrGameState_NewCharacter(TestCHAR, NULL, NULL, NULL);28 //ONrGameState_NewCharacter(&TestCHAR, NULL); 29 29 } -
Daodan/src/Oni_Character.h
r431 r432 13 13 14 14 typedef struct { 15 char Type[4]; //"CHAR"etc.15 int Type; //'CHAR' etc. 16 16 int ObjectId; //not needed 17 17 int Flags; //The flags of the object...not used for CHAR … … 48 48 int16_t NCIUsed; //Don't use this... 49 49 int16_t NCIDropped; //Don't use this... 50 51 50 int32_t TeamID; //Team ID 52 51 int32_t AmmoPercent; //Percent of weapon ammo full … … 90 89 }; 91 90 92 int16_t ONICALL ONrGameState_NewCharacter(CharacterObject* character, void* something, void* somethingelse, void* anotherthing);91 int16_t ONICALL ONrGameState_NewCharacter(CharacterObject* CHAR, void* AISA, void* flag, int* list_location); 93 92 94 93 #endif
Note:
See TracChangeset
for help on using the changeset viewer.