예제 #1
0
        public BatchCellsParser(EntitySpawnPointFactory entitySpawnPointFactory, ServerProtoBufSerializer serializer)
        {
            this.entitySpawnPointFactory = entitySpawnPointFactory;
            this.serializer = serializer;

            surrogateTypes.Add("UnityEngine.Transform", typeof(NitroxTransform));
            surrogateTypes.Add("UnityEngine.Vector3", typeof(NitroxVector3));
            surrogateTypes.Add("UnityEngine.Quaternion", typeof(NitroxQuaternion));
        }
예제 #2
0
        public BatchCellsParser(EntitySpawnPointFactory entitySpawnPointFactory, ServerProtoBufSerializer serializer)
        {
            this.entitySpawnPointFactory = entitySpawnPointFactory;
            this.serializer = serializer;

            surrogateTypes = new Dictionary <string, Type>
            {
                { "UnityEngine.Transform", typeof(NitroxTransform) },
                { "UnityEngine.Vector3", typeof(NitroxVector3) },
                { "UnityEngine.Quaternion", typeof(NitroxQuaternion) }
            };
        }