private void HandleGameEvent(EmpyrionGameEventData aMsg) { var msg = aMsg.GetEmpyrionObject(); //Console.WriteLine($"Game_Event:{aMsg.eventId}#{aMsg.seqNr} = {msg}"); Dispatcher?.Game_Event(aMsg.eventId, aMsg.seqNr, msg); }
private void HandleGameEvent(EmpyrionGameEventData TypedMsg) { if (TypedMsg.eventId == CmdId.Request_GlobalStructure_List) { GetGlobalStructureListEvents.Enqueue(TypedMsg); GetGlobalStructureList.Set(); } else { GameAPI.Game_Request(TypedMsg.eventId, TypedMsg.seqNr, TypedMsg.GetEmpyrionObject()); } }
public bool Game_Request(CmdId reqId, ushort seqNr, object data) { //Console.WriteLine($"Game_Request:{reqId}#{seqNr} = {data}"); var msg = new EmpyrionGameEventData() { eventId = reqId, seqNr = seqNr }; msg.SetEmpyrionObject(data); ToEmpyrion.SendMessage(msg); return(true); }
public void Game_Event(CmdId eventId, ushort seqNr, object data) { if (OutServer == null) { return; } try { var msg = new EmpyrionGameEventData() { eventId = eventId, seqNr = seqNr }; msg.SetEmpyrionObject(data); OutServer.SendMessage(msg); } catch (System.Exception Error) { GameAPI.Console_Write($"ModClientDll: {Error.Message}"); } }
private void HandleGameEvent(EmpyrionGameEventData TypedMsg) { var msg = TypedMsg.GetEmpyrionObject(); GameAPI.Game_Request(TypedMsg.eventId, TypedMsg.seqNr, msg); }
private void HandleGameEvent(EmpyrionGameEventData aMsg) { Console.WriteLine($"Game_Event:{aMsg.eventId}#{aMsg.seqNr} = {aMsg.data}"); Dispatcher?.Game_Event(aMsg.eventId, aMsg.seqNr, aMsg.data); }
private void HandleGameEvent(EmpyrionGameEventData aMsg) { var msg = aMsg.GetEmpyrionObject(); Parallel.ForEach(Plugins, async P => await SaveApiCall(() => P.Game_Event(aMsg.eventId, aMsg.seqNr, msg), P, $"CmdId:{aMsg.eventId} seqNr:{aMsg.seqNr} data:{msg}")); }
private void HandleGameEvent(EmpyrionGameEventData TypedMsg) { GameAPI.Game_Request(TypedMsg.eventId, TypedMsg.seqNr, TypedMsg.data); }
private static void HandleGameEvent(EmpyrionGameEventData m) { var obj = m.GetEmpyrionObject(); Console.WriteLine($"EmpyrionGameEventData:{m.eventId}#{m.seqNr} => {obj}"); }