예제 #1
0
파일: Metadata.cs 프로젝트: DB823/unity
            public static global::Improbable.Metadata.Snapshot DeserializeSnapshot(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var component = new global::Improbable.Metadata.Snapshot();

                component.EntityType = obj.GetString(1);

                return(component);
            }
예제 #2
0
파일: Metadata.cs 프로젝트: DB823/unity
            public static void ApplyUpdate(global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj, ref global::Improbable.Metadata.Snapshot snapshot)
            {
                var obj = updateObj.GetFields();

                if (obj.GetStringCount(1) == 1)
                {
                    snapshot.EntityType = obj.GetString(1);
                }
            }
예제 #3
0
파일: Metadata.cs 프로젝트: DB823/unity
 public static void SerializeSnapshot(global::Improbable.Metadata.Snapshot snapshot, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     obj.AddString(1, snapshot.EntityType);
 }