Example #1
0
        public static ActorComponent Read(Actor actor, BinaryReader reader, ActorComponent component = null)
        {
            component.m_Actor     = actor;
            component.m_Name      = Actor.ReadString(reader);
            component.m_ParentIdx = reader.ReadUInt16();

            return(component);
        }
Example #2
0
 public static CustomStringProperty Read(Actor actor, BinaryReader reader, CustomStringProperty property = null)
 {
     if (property == null)
     {
         property = new CustomStringProperty();
     }
     ActorComponent.Read(actor, reader, property);
     property.Value = Actor.ReadString(reader);
     return(property);
 }