Last change
on this file since 1160 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:
704 bytes
|
Rev | Line | |
---|
[1114] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 |
|
---|
| 4 | namespace Oni.Particles
|
---|
| 5 | {
|
---|
| 6 | internal class Event
|
---|
| 7 | {
|
---|
| 8 | private readonly EventType type;
|
---|
| 9 | private readonly List<EventAction> actions;
|
---|
| 10 |
|
---|
| 11 | public Event(EventType type)
|
---|
| 12 | {
|
---|
| 13 | this.type = type;
|
---|
| 14 | this.actions = new List<EventAction>();
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public Event(EventType type, EventAction[] actions, int start, int length)
|
---|
| 18 | : this(type)
|
---|
| 19 | {
|
---|
| 20 | for (int i = start; i < start + length; i++)
|
---|
| 21 | this.actions.Add(actions[i]);
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public EventType Type => type;
|
---|
| 25 |
|
---|
| 26 | public List<EventAction> Actions => actions;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.