Exemplo n.º 1
0
 static GameMessageFactory()
 {
     Serializer.AddCompiler(new MatchKeySerializer());
     Serializer.AddCompiler(new LongPeerIdSerializer());
     Serializer.AddCompiler(new CharacterStyleSerializer());
     Serializer.AddSerializer(new SInventoryInfoAckMessageSerializer());
     Serializer.AddSerializer(new SGameRoomListAckMessageSerializer());
 }
        public static void Init()
        {
            Debug.Assert(!_IsInitialized);

            _DoubleArraySerializer = Serializer.GetSerializer(typeof(double[]));

            Serializer.AddSerializer(typeof(Pnt), new OcctSerializer_Pnt());
            Serializer.AddSerializer(typeof(Pnt2d), new OcctSerializer_Pnt2d());
            Serializer.AddSerializer(typeof(Vec), new OcctSerializer_Vec());
            Serializer.AddSerializer(typeof(Dir), new OcctSerializer_Dir());
            Serializer.AddSerializer(typeof(Quaternion), new OcctSerializer_Quaternion());
            Serializer.AddSerializer(typeof(Ax1), new OcctSerializer_Ax1());
            Serializer.AddSerializer(typeof(Pln), new OcctSerializer_Pln());

            _IsInitialized = true;
        }
Exemplo n.º 3
0
 static RelayMessageFactory()
 {
     Serializer.AddCompiler(new PeerIdSerializer());
     Serializer.AddSerializer(new DamageInfoMessageSerializer());
 }
Exemplo n.º 4
0
 static ChatMessageFactory()
 {
     Serializer.AddSerializer(new SChannelPlayerListAckMessageSerializer());
     Serializer.AddCompiler(new ItemNumberSerializer());
 }