ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Oni_Character.h
(Generate patch)

Comparing Daodan/src/Oni_Character.h (file contents):
Revision 427 by gumby, Thu Jul 16 06:10:18 2009 UTC vs.
Revision 428 by rossy, Thu Jul 16 06:37:58 2009 UTC

# Line 1 | Line 1
1   #pragma once
2 < #ifndef ONI_CHARS_H
3 < #define ONI_CHARS_H
4 < #endif
2 > #ifndef ONI_CHARACTER_H
3 > #define ONI_CHARACTER_H
4  
5   #include "Daodan.h"
6   #include <stdint.h>
7  
9 int DDr_TeamToTeamID(const char*);
10 ONICALL ONrGameState_NewCharacter(int, int);
11 int CHARTest();
12
8   typedef struct {
9          float X;
10          float Y;
11          float Z;        
12   } Vector3; //probably move to utilities...
13  
19
20
14   typedef struct {
15          char Type[4];                   //"CHAR" etc.
16          int ObjectId;                   //not needed
# Line 26 | Line 19 | typedef struct {
19          Vector3 Rotation;               //Rotation of Object
20          int EditorCallbacks;    //Lets try not to mess with it for now. :P
21          int field_28;                   //unknown
29        
22   } OSD_Header;
23  
32
24   typedef struct {
25 <        int32_t Options;                                //A bitset. Someone had better define these
25 >        uint32_t Options;                               //A bitset. Someone had better define these
26          char Class[64];                                 //Name of the ONCC we use. ONCCName in idb
27          char Name[32];                                  //Name of the character. ie: ai2_spawn Muro
28          char Weapon[64];                                //Name of the weapon he holds. ONWCName in idb
# Line 86 | Line 77 | typedef struct {
77          OSD_Header Header;
78          CharacterOSD OSD;
79   } CharacterObject;
80 +
81 + enum {
82 +        team_konoko,
83 +        team_tctf,
84 +        team_syndicate,
85 +        team_neutral,
86 +        team_securityguard,
87 +        team_rougekonoko,
88 +        team_switzerland,
89 +        team_syndicateaccessory,
90 + };
91 +
92 + int ONICALL ONrGameState_NewCharacter(CharacterObject* character, void* something);
93 +
94 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)