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)); }
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) } }; }