internal bool readAIMesh(string path, out IntWarsSharp.Logic.RAF.AIMesh aimesh) { if (Root == null) { aimesh = null; return false; } var entries = Root.SearchFileEntries(path); if (entries.Count < 1) { aimesh = null; return false; } if (entries.Count > 1) Logger.LogCoreInfo("Found more than one AIMesh for query " + path); var entry = entries.First(); aimesh = new IntWarsSharp.Logic.RAF.AIMesh(entry); return true; }
public bool broadcastPacketVision(GameObject o, IntWarsSharp.Logic.Packets.Packet packet, Channel channelNo, PacketFlags flag = PacketFlags.Reliable) { return broadcastPacketVision(o, packet.GetBytes(), channelNo, flag); }
public bool sendPacket(ENetPeer* peer, IntWarsSharp.Logic.Packets.Packet packet, Channel channelNo, PacketFlags flag = PacketFlags.Reliable) { return sendPacket(peer, packet.GetBytes(), channelNo, flag); }
public bool broadcastPacketTeam(TeamId team, IntWarsSharp.Logic.Packets.Packet packet, Channel channelNo, PacketFlags flag = PacketFlags.Reliable) { return broadcastPacketTeam(team, packet.GetBytes(), channelNo, flag); }