Ejemplo n.º 1
0
        public void OnApplicationStart()
        {
            Tracer.Log("OnApplicationStart");
            var p = new CameraPatch();

            PatchMgr.Patch(p);
        }
Ejemplo n.º 2
0
        public bool HandleCommand(string command, List <string> args)
        {
            ServerState State;

            if (!Enum.TryParse(args[0], out State))
            {
                Log.Error("ServerState", "Invalid State");
                return(false);
            }

            PatchMgr.SetServerState(State);
            Log.Success("ServerState", "Server state is now " + State);

            return(true);
        }