ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Physics/ObjectNode.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 828 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 using System.Collections.Generic;
3
4 namespace Oni.Physics
5 {
6 internal class ObjectNode
7 {
8 public string Name;
9 public string FileName;
10 public ObjectSetupFlags Flags;
11 public int ScriptId;
12 public readonly ObjectGeometry[] Geometries;
13 public readonly ObjectParticle[] Particles;
14 public ObjectAnimation[] Animations = new ObjectAnimation[0];
15
16 public ObjectNode(IEnumerable<ObjectGeometry> geometries)
17 {
18 this.Geometries = geometries.ToArray();
19 this.Particles = new ObjectParticle[0];
20 }
21
22 public ObjectNode(ObjectGeometry[] geometries, ObjectParticle[] particles)
23 {
24 this.Geometries = geometries;
25 this.Particles = particles;
26 }
27 }
28 }