Last change
on this file since 1114 was 1114, checked in by iritscen, 5 years ago |
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.
|
File size:
729 bytes
|
Line | |
---|
1 | using System;
|
---|
2 |
|
---|
3 | namespace Oni.Objects
|
---|
4 | {
|
---|
5 | internal abstract class GunkObject : ObjectBase
|
---|
6 | {
|
---|
7 | private GunkObjectClass gunkClass;
|
---|
8 | private string className;
|
---|
9 |
|
---|
10 | public GunkObjectClass GunkClass
|
---|
11 | {
|
---|
12 | get
|
---|
13 | {
|
---|
14 | return gunkClass;
|
---|
15 | }
|
---|
16 | protected set
|
---|
17 | {
|
---|
18 | gunkClass = value;
|
---|
19 |
|
---|
20 | if (value != null)
|
---|
21 | className = value.Name;
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
25 | public string ClassName
|
---|
26 | {
|
---|
27 | get { return className; }
|
---|
28 | protected set { className = value; }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public int GunkId => ((int)TypeId << 24) | ObjectId;
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.