コード例 #1
0
 public override void Serialize(SerializeEvent e)
 {
     e.Writer.Write(ttsid);
     GameObjectGenericMessage.SerializePosition(position, e);
     GameObjectGenericMessage.SerializeRotation(rotation, e);
     e.Writer.Write(parentTTSID);
     e.Writer.Write(tag);
     e.Writer.Write(name);
     e.Writer.Write(prefabID);
     e.Writer.Write("CHECK");
 }
コード例 #2
0
 public override void Deserialize(DeserializeEvent e)
 {
     ttsid       = e.Reader.ReadUInt16();
     position    = GameObjectGenericMessage.DeserializePosition(e);
     rotation    = GameObjectGenericMessage.DeserializeRotation(e);
     parentTTSID = e.Reader.ReadUInt16();
     tag         = e.Reader.ReadString();
     name        = e.Reader.ReadString();
     prefabID    = e.Reader.ReadString();
     Debug.Log(e.Reader.ReadString());
 }
コード例 #3
0
 public override void Serialize(SerializeEvent e)
 {
     e.Writer.Write(ttsid);
     GameObjectGenericMessage.SerializePosition(position, e);
     GameObjectGenericMessage.SerializeRotation(rotation, e);
 }
コード例 #4
0
 public override void Deserialize(DeserializeEvent e)
 {
     ttsid    = e.Reader.ReadUInt16();
     position = GameObjectGenericMessage.DeserializePosition(e);
     rotation = GameObjectGenericMessage.DeserializeRotation(e);
 }