예제 #1
0
        public ObjectMember[] GetComponentMembers(Component component)
        {
            WriteByte((byte)Commands.GetComponentMembers);
            WriteGameObjectRef(component.Owner);
            WriteInt(component.Index);
            int len = ReadInt();

            ObjectMember[] members = new ObjectMember[len];
            for (int i = 0; i < len; i++)
            {
                Types  type = (Types)ReadByte();
                string name = ReadString();
                members[i] = new ObjectMember(component,
                                              type,
                                              name,
                                              ReadObject());
            }
            return(members);
        }
 public ObjectMember(ObjectMember parent, Communicator <GameObject> .Types type, string name, object value) : this(parent.Owner, type, name, value)
 {
     Parent = parent;
 }