ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Objects/GunkObject.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 729 byte(s)
Log Message:
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.

File Contents

# Content
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 }