Exemplo n.º 1
0
 protected virtual void SerializeImpl(IO.BitStream s)
 {
     MegaloVariant.Serialize(s);
     s.Stream(ref Flags, 2, GameEngineSandboxVariantFlagsBitStreamer.Instance);
     s.Stream(ref EditMode, 1, SandboxEditingModeBitStreamer.Instance);
     s.Stream(ref RespawnTime, 6);
     EditorTraits.Serialize(s);
 }
Exemplo n.º 2
0
        public void Serialize <TDoc, TCursor>(IO.TagElementStream <TDoc, TCursor, string> s)
            where TDoc : class
            where TCursor : class
        {
            MegaloVariant.Serialize(s);

            using (s.EnterOwnerBookmark(this))
                SerializeImpl(s);
        }