예제 #1
0
 /// <summary>Creates an empty Collection</summary>
 internal FrameCollection(Anim parent)
 {
     _parent    = parent;
     _itemLimit = 50;
     _items     = new List <Frame>(_itemLimit);
 }
예제 #2
0
 void _assignResource(int index, Resource.ResourceType type, FileStream stream, long offset)
 {
     // commented out types redirect to Resource to read and capture _rawData
     if (type == Resource.ResourceType.Anim) _resources[index] = new Anim(stream, offset);
     else if (type == Resource.ResourceType.Blas || type == Resource.ResourceType.Voic) _resources[index] = new Blas(stream, offset);
     //TODO: else if (type == Resource.ResourceType.Bmap) _resources[index] = new Bmap(stream, offset);
     //TODO: else if (type == Resource.ResourceType.Cust) _resources[index] = new Cust(stream, offset);
     else if (type == Resource.ResourceType.Delt) _resources[index] = new Delt(stream, offset);
     else if (type == Resource.ResourceType.Film) _resources[index] = new Film(stream, offset);
     else if (type == Resource.ResourceType.Font) _resources[index] = new Font(stream, offset);
     //TODO: else if (type == Resource.ResourceType.Gmid) _resources[index] = new Gmid(stream, offset);
     else if (type == Resource.ResourceType.Mask) _resources[index] = new Mask(stream, offset);
     //TODO: else if (type == Resource.ResourceType.Mtrx) _resources[index] = new Mtrx(stream, offset);
     else if (type == Resource.ResourceType.Panl) _resources[index] = new Panl(stream, offset);
     else if (type == Resource.ResourceType.Pltt) _resources[index] = new Pltt(stream, offset);
     // skip Rmap
     //TODO: else if (type == Resource.ResourceType.Ship) _resources[index] = new Ship(stream, offset);
     else if (type == Resource.ResourceType.Text) _resources[index] = new Text(stream, offset);
     else if (type == Resource.ResourceType.Xact) _resources[index] = new Xact(stream, offset);
     else _resources[index] = new Resource(stream, offset);
 }
예제 #3
0
 /// <summary>Blank constructor</summary>
 /// <param name="parent">Parent Anim resource</param>
 internal Frame(Anim parent)
 {
     _parent = parent;
 }
예제 #4
0
 /// <summary>Blank constructor</summary>
 /// <param name="parent">Parent Anim resource</param>
 internal Frame(Anim parent)
 {
     _parent = parent;
 }