Exemple #1
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     info.AddValue("Version", Version);
     info.AddValue("Visgroups", Visgroups.ToArray());
     info.AddValue("Cameras", Cameras.ToArray());
     info.AddValue("ActiveCameraID", Cameras.IndexOf(ActiveCamera));
     info.AddValue("WorldSpawn", WorldSpawn);
     info.AddValue("IDGenerator", IDGenerator);
 }
Exemple #2
0
        public void CycleCamera()
        {
            if (ClassicMode)
            {
                return;
            }

            int i = Cameras.IndexOf(Camera);

            i      = (i + 1) % Cameras.Count;
            Camera = Cameras[i];
            if (!LocalPlayer.Hacks.CanUseThirdPersonCamera || !LocalPlayer.Hacks.Enabled)
            {
                Camera = Cameras[0];
            }
            UpdateProjection();
        }