コード例 #1
0
 protected bool Equals(USAffine3D other)
 {
     return(C1R1.Equals(other.C1R1) && C1R2.Equals(other.C1R2) && C1R3.Equals(other.C1R3) &&
            C2R1.Equals(other.C2R1) && C2R2.Equals(other.C2R2) && C2R3.Equals(other.C2R3) &&
            C3R1.Equals(other.C3R1) && C3R2.Equals(other.C3R2) && C3R3.Equals(other.C3R3) &&
            C4R1.Equals(other.C4R1) && C4R2.Equals(other.C4R2) && C4R3.Equals(other.C4R3));
 }
コード例 #2
0
        public KLEIAnimation(BinaryReader reader)
        {
            signature  = reader.ReadBytes(8);
            StructSize = reader.ReadUInt32();

            AnimCount  = reader.ReadUInt32();
            animations = new Animation[AnimCount];
            for (var i = 0; i < AnimCount; i++)
            {
                animations[i] = new Animation(reader);
            }

            FrameCount = reader.ReadUInt32();
            frames     = new Frame[FrameCount];
            for (var i = 0; i < FrameCount; i++)
            {
                frames[i] = new Frame(reader);
            }

            EventCount = reader.ReadUInt32();
            events     = new uint[EventCount];
            for (var i = 0; i < EventCount; i++)
            {
                events[i] = reader.ReadUInt32();
            }

            InstanceCount = reader.ReadUInt32();
            instances     = new Instance[InstanceCount];
            for (var i = 0; i < InstanceCount; i++)
            {
                instances[i] = new Instance(reader);
            }

            ColourCount = reader.ReadUInt32();
            colours     = new Colour[ColourCount];
            for (var i = 0; i < ColourCount; i++)
            {
                colours[i] = new Colour(reader);
            }

            TransformCount = reader.ReadUInt32();
            transforms     = new USAffine3D[TransformCount];
            for (var i = 0; i < TransformCount; i++)
            {
                transforms[i] = new USAffine3D(reader);
            }

            EventStringsSize = reader.ReadUInt32();
            eventStrings     = reader.ReadChars((int)EventStringsSize);
        }
コード例 #3
0
ファイル: KLEIAnimation.cs プロジェクト: Psimage/KWADTool
        public KLEIAnimation(BinaryReader reader)
        {
            signature = reader.ReadBytes(8);
            StructSize = reader.ReadUInt32();

            AnimCount = reader.ReadUInt32();
            animations = new Animation[AnimCount];
            for (var i = 0; i < AnimCount; i++)
            {
                animations[i] = new Animation(reader);
            }

            FrameCount = reader.ReadUInt32();
            frames = new Frame[FrameCount];
            for (var i = 0; i < FrameCount; i++)
            {
                frames[i] = new Frame(reader);
            }

            EventCount = reader.ReadUInt32();
            events = new uint[EventCount];
            for (var i = 0; i < EventCount; i++)
            {
                events[i] = reader.ReadUInt32();
            }

            InstanceCount = reader.ReadUInt32();
            instances = new Instance[InstanceCount];
            for (var i = 0; i < InstanceCount; i++)
            {
                instances[i] = new Instance(reader);
            }

            ColourCount = reader.ReadUInt32();
            colours = new Colour[ColourCount];
            for (var i = 0; i < ColourCount; i++)
            {
                colours[i] = new Colour(reader);
            }

            TransformCount = reader.ReadUInt32();
            transforms = new USAffine3D[TransformCount];
            for (var i = 0; i < TransformCount; i++)
            {
                transforms[i] = new USAffine3D(reader);
            }

            EventStringsSize = reader.ReadUInt32();
            eventStrings = reader.ReadChars((int) EventStringsSize);
        }
コード例 #4
0
 public SymbolFrame(BinaryReader reader)
 {
     ModelResourceIdx = reader.ReadUInt32();
     Affine3D         = new USAffine3D(reader);
 }
コード例 #5
0
ファイル: USAffine3D.cs プロジェクト: Psimage/KWADTool
 protected bool Equals(USAffine3D other)
 {
     return C1R1.Equals(other.C1R1) && C1R2.Equals(other.C1R2) && C1R3.Equals(other.C1R3) &&
            C2R1.Equals(other.C2R1) && C2R2.Equals(other.C2R2) && C2R3.Equals(other.C2R3) &&
            C3R1.Equals(other.C3R1) && C3R2.Equals(other.C3R2) && C3R3.Equals(other.C3R3) &&
            C4R1.Equals(other.C4R1) && C4R2.Equals(other.C4R2) && C4R3.Equals(other.C4R3);
 }
コード例 #6
0
ファイル: KLEIBuild.cs プロジェクト: Psimage/KWADTool
 public SymbolFrame(BinaryReader reader)
 {
     ModelResourceIdx = reader.ReadUInt32();
     Affine3D = new USAffine3D(reader);
 }