ACR_ServerCommunicator.ACR_ServerCommunicator.SignalIPCEvent C# (CSharp) Method

SignalIPCEvent() private method

Signal an IPC event to a server's IPC event queue.
private SignalIPCEvent ( int SourcePlayerId, int SourceServerId, int DestinationPlayerId, int DestinationServerId, int EventType, string EventText ) : void
SourcePlayerId int Supplies the source player id for the /// event originator.
SourceServerId int Supplies the source server id for the /// event originator.
DestinationPlayerId int Supplies the destination player /// id for event routing.
DestinationServerId int Supplies the destination server /// id for event routing.
EventType int Supplies the event type code.
EventText string Supplies the event data, which must be less /// than ACR_SERVER_IPC_MAX_EVENT_LENGTH bytes.
return void
        private void SignalIPCEvent(int SourcePlayerId, int SourceServerId, int DestinationPlayerId, int DestinationServerId, int EventType, string EventText)
        {
            if (EventText.Length > ACR_SERVER_IPC_MAX_EVENT_LENGTH)
                throw new ApplicationException("IPC event text too long:" + EventText);

            GameWorldManager.IPC_EVENT Event = new GameWorldManager.IPC_EVENT();

            Event.SourcePlayerId = SourcePlayerId;
            Event.SourceServerId = SourceServerId;
            Event.DestinationPlayerId = DestinationPlayerId;
            Event.DestinationServerId = DestinationServerId;
            Event.EventType = EventType;
            Event.EventText = EventText;

            lock (WorldManager)
            {
                WorldManager.SignalIPCEvent(Event);
            }

            WorldManager.SignalIPCEventWakeup();
        }
ACR_ServerCommunicator