コード例 #1
0
        public void Set(int planeIndex, int planeCount, Vector2 boxMin, Vector2 boxMax, string modelName, string boneName)
        {
            _planeIndex = (short)planeIndex;
            _planeCount = (short)planeCount;
            _unk1       = 0;
            _unk2       = 0;
            _unk3       = 0;
            _flags      = 0;
            _boxMin     = boxMin;
            _boxMax     = boxMax;
            _unk5       = 0;
            _unk6       = 0;

            ModelName = modelName;
            BoneName  = boneName;
        }
コード例 #2
0
        public ColObject(int planeIndex, int planeCount, int pointOffset, int pointCount, Vector2 boxMin, Vector2 boxMax, string modelName, string boneName,
                         int unk1, int unk2, int unk3, int flags, int unk5, int unk6, int boneIndex)
        {
            _planeIndex  = (short)planeIndex;
            _planeCount  = (short)planeCount;
            _unk1        = unk1;
            _unk2        = unk2;
            _unk3        = unk3;
            _flags       = (ushort)flags;
            _unk5        = (short)unk5;
            _boxMin      = boxMin;
            _boxMax      = boxMax;
            _pointOffset = (short)pointOffset;
            _pointCount  = (short)pointCount;
            _unk6        = (short)unk6;
            _boneIndex   = (short)boneIndex;

            fixed(byte *p = _modelName)
            SetStr(p, modelName);

            fixed(byte *p = _boneName)
            SetStr(p, boneName);
        }
コード例 #3
0
ファイル: Vectors.cs プロジェクト: gleblebedev/Toe.SPIRV
 public bool Equals(BVec2 other)
 {
     return(X == other.X && Y == other.Y);
 }