ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/typemap
Revision: 1.9
Committed: Mon Dec 25 11:25:50 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.8: +10 -15 lines
Log Message:
- small, but subtle, rewrite of object management
- perl will now keep attachable objects alive
- objects are now refcounted
- refcouts need to be tested explicitly (refcnt_chk)
- explicit destroy is required current
- explicit destroy asks "nicely" for the object to self destruct, if possible
- refcounts will be used during mortal killing
- minor bugfixes, optimisations etc.
- some former hacks removed.

File Contents

# User Rev Content
1 root 1.1 val64 T_VAL64
2     uint64 T_VAL64
3    
4 root 1.9 object * T_CF_OBJ
5 root 1.7 partylist * T_CF_OBJ
6     archetype * T_CF_OBJ
7     maptile * T_CF_OBJ
8     region * T_CF_OBJ
9 root 1.8 client * T_CF_OBJ
10 root 1.7 player * T_CF_OBJ
11     living * T_CF_OBJ
12    
13 root 1.6 Settings * T_SETTINGS
14 root 1.1
15 root 1.9 object_ornull * T_CF_OBJ_ORNULL
16     mapstruct_ornull * T_CF_OBJ_ORNULL
17 root 1.1
18     INPUT
19    
20     T_VAL64
21     $var = ($type)SvVAL64 ($arg);
22    
23 root 1.7 T_CF_OBJ
24 root 1.4 sv_to ($arg, $var)
25 root 1.7
26 root 1.6 T_SETTINGS
27 root 1.9 $var = &settings
28 root 1.7
29 root 1.9 T_CF_OBJ_ORNULL
30     if (SvOK ($arg))
31     sv_to ($arg, $var);
32     else
33     $var = 0;
34 root 1.1
35     OUTPUT
36    
37     T_VAL64
38     $arg = newSVval64 ($var);
39    
40 root 1.9 T_CF_OBJ_NORNULL
41 root 1.4 $arg = to_sv ($var);
42 root 1.7
43     T_CF_OBJ
44 root 1.4 $arg = to_sv ($var);
45 root 1.1