Exemple #1
0
    public bool Unload(PluginRegistrar in_reg)
    {
        String strPluginName = null;

        strPluginName = in_reg.Name;
        Log(strPluginName + " has been unloaded.");

        // stop server
        sIBL_GUI_XSI_Server.Stop();

        return(true);
    }
Exemple #2
0
    public bool Load(PluginRegistrar in_reg)
    {
        in_reg.Author = "Softimage";
        in_reg.Name   = "sIBL_GUI_XSI_ServerPlugin";
        in_reg.Major  = 1;
        in_reg.Minor  = 0;

        in_reg.RegisterCommand("sIBL_GUI_XSI_Server_Start", null);
        in_reg.RegisterCommand("sIBL_GUI_XSI_Server_Stop", null);
        in_reg.RegisterTimerEvent("sIBL_GUI_XSI_Server_ProcessRequestsTimerEvent", 500, 0);
        TimerEvent evTimer = (TimerEvent)GetXSI().EventInfos["sIBL_GUI_XSI_Server_ProcessRequestsTimerEvent"];

        evTimer.Mute = true;

        in_reg.RegisterMenu(siMenuAnchorPoints.siMenuTbGetLightID, "sIBL_GUI_XSI_Server_Menu", false, false);
        in_reg.RegisterProperty("sIBL_GUI_XSI_Server_Property");
        in_reg.RegisterEvent("sIBL_GUI_XSI_Server_StartupEvent", siEventID.siOnStartup);
        //RegistrationInsertionPoint - do not remove this line

        return(true);
    }
        // ReSharper disable once UnusedMember.Local
        private static void Main()
        {
            PluginRegistrar.LoadPlugins();

            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_ACQUIRE_ITEM, "mod_on_acquire");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_ACTIVATE_ITEM, "mod_on_activate");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_CLIENT_ENTER, "mod_on_enter");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_CLIENT_EXIT, "mod_on_leave");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_CANCEL_CUTSCENE, "mod_on_csabort");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_HEARTBEAT, "mod_on_heartbeat");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_CHAT, "mod_on_chat");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_DEATH, "mod_on_death");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_DYING, "mod_on_dying");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_EQUIP_ITEM, "mod_on_equip");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_LEVEL_UP, "mod_on_levelup");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_RESPAWN_BUTTON_PRESSED, "mod_on_respawn");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_PLAYER_REST, "mod_on_rest");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_UNEQUIP_ITEM, "mod_on_unequip");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_LOSE_ITEM, "mod_on_unacquire");
            SetEventScript(GetModule(), EVENT_SCRIPT_MODULE_ON_USER_DEFINED_EVENT, "mod_on_user");

            PluginRegistrar.RunRegisteredEvents(RegistrationEventType.OnModuleLoad);
        }
Exemple #4
0
 // ReSharper disable once UnusedMember.Local
 private static void Main()
 {
     PluginRegistrar.RunRegisteredEvents(RegistrationEventType.OnModuleUnacquireItem);
 }
Exemple #5
0
 // ReSharper disable once UnusedMember.Local
 private static void Main()
 {
     PluginRegistrar.RunRegisteredEvents(RegistrationEventType.OnModuleLeave);
 }
 // ReSharper disable once UnusedMember.Local
 private static void Main()
 {
     PluginRegistrar.RunRegisteredEvents(RegistrationEventType.OnModuleCutsceneAbort);
 }
Exemple #7
0
 // ReSharper disable once UnusedMember.Local
 private static void Main()
 {
     PluginRegistrar.RunRegisteredEvents(RegistrationEventType.OnModuleUserDefined);
 }
 public bool Unload(PluginRegistrar in_reg)
 {
     String strPluginName = null;
     strPluginName = in_reg.Name;
     Log(strPluginName + " has been unloaded.");
     return true;
 }
    public bool Load(PluginRegistrar in_reg)
    {
        in_reg.Author = "Svyatoslav Shumikhin";
        in_reg.Name = "ss_PolyByAngleCS";
        in_reg.Major = 1;
        in_reg.Minor = 0;

        //RegistrationInsertionPoint - do not remove this line
        in_reg.RegisterFilter("ss_PolyByAngleCS", siFilterType.siFilterSubComponentPolygon);

        return true;
    }