コード例 #1
0
 public static ActorColliderCircle Read(Actor actor, BinaryReader reader, ActorColliderCircle property = null)
 {
     if (property == null)
     {
         property = new ActorColliderCircle();
     }
     ActorCollider.Read(actor, reader, property);
     property.m_Radius = reader.ReadSingle();
     return(property);
 }
コード例 #2
0
 public static ActorColliderRectangle Read(Actor actor, BinaryReader reader, ActorColliderRectangle property = null)
 {
     if (property == null)
     {
         property = new ActorColliderRectangle();
     }
     ActorCollider.Read(actor, reader, property);
     property.m_Width  = reader.ReadSingle();
     property.m_Height = reader.ReadSingle();
     return(property);
 }
コード例 #3
0
        public static ActorColliderLine Read(Actor actor, BinaryReader reader, ActorColliderLine property = null)
        {
            if (property == null)
            {
                property = new ActorColliderLine();
            }
            ActorCollider.Read(actor, reader, property);

            int numVertices = (int)reader.ReadUInt32();

            property.m_Vertices = new float[numVertices * 2];
            Actor.ReadFloat32Array(reader, property.m_Vertices);
            return(property);
        }
コード例 #4
0
 public void Copy(ActorCollider prop, Actor resetActor)
 {
     base.Copy(prop, resetActor);
     m_IsCollisionEnabled = prop.m_IsCollisionEnabled;
 }
コード例 #5
0
 public static ActorCollider Read(Actor actor, BinaryReader reader, ActorCollider property)
 {
     ActorNode.Read(actor, reader, property);
     property.IsCollisionEnabled = reader.ReadByte() == 1;
     return(property);
 }