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