mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	mass replaced all methods to pascal case
This commit is contained in:
		| @@ -28,13 +28,13 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             UserData.RegistrationPolicy = InteropRegistrationPolicy.Automatic; | ||||
|         } | ||||
|  | ||||
|         public static List<LuaParam> doActorInstantiate(Player player, Actor target) | ||||
|         public static List<LuaParam> DoActorInstantiate(Player player, Actor target) | ||||
|         { | ||||
|             string luaPath; | ||||
|  | ||||
|             if (target is Npc) | ||||
|             { | ||||
|                 luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.getName()); | ||||
|                 luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.GetName()); | ||||
|                 if (File.Exists(luaPath)) | ||||
|                 {                     | ||||
|                     Script script = loadScript(luaPath); | ||||
| @@ -43,12 +43,12 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|                         return null; | ||||
|  | ||||
|                     DynValue result = script.Call(script.Globals["init"], target); | ||||
|                     List<LuaParam> lparams = LuaUtils.createLuaParamList(result); | ||||
|                     List<LuaParam> lparams = LuaUtils.CreateLuaParamList(result); | ||||
|                     return lparams; | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.getName())); | ||||
|                     SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.GetName())); | ||||
|                     return null; | ||||
|                 } | ||||
|             } | ||||
| @@ -56,20 +56,20 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             return null; | ||||
|         }        | ||||
|  | ||||
|         public static void doActorOnEventStarted(Player player, Actor target, EventStartPacket eventStart) | ||||
|         public static void DoActorOnEventStarted(Player player, Actor target, EventStartPacket eventStart) | ||||
|         { | ||||
|             string luaPath; | ||||
|  | ||||
|             if (target is Command) | ||||
|             { | ||||
|                 luaPath = String.Format(FILEPATH_COMMANDS, target.getName()); | ||||
|                 luaPath = String.Format(FILEPATH_COMMANDS, target.GetName()); | ||||
|             } | ||||
|             else if (target is Director) | ||||
|             { | ||||
|                 luaPath = String.Format(FILEPATH_DIRECTORS, target.getName()); | ||||
|                 luaPath = String.Format(FILEPATH_DIRECTORS, target.GetName()); | ||||
|             } | ||||
|             else  | ||||
|                 luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.getName()); | ||||
|                 luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.GetName()); | ||||
|  | ||||
|             if (File.Exists(luaPath)) | ||||
|             { | ||||
| @@ -78,14 +78,14 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|                 if (script == null) | ||||
|                     return; | ||||
|  | ||||
|                 //Have to do this to combine LuaParams | ||||
|                 //Have to Do this to combine LuaParams | ||||
|                 List<Object> objects = new List<Object>(); | ||||
|                 objects.Add(player); | ||||
|                 objects.Add(target); | ||||
|                 objects.Add(eventStart.triggerName); | ||||
|  | ||||
|                 if (eventStart.luaParams != null) | ||||
|                     objects.AddRange(LuaUtils.createLuaParamObjectList(eventStart.luaParams)); | ||||
|                     objects.AddRange(LuaUtils.CreateLuaParamObjectList(eventStart.luaParams)); | ||||
|  | ||||
|                 //Run Script | ||||
|                 if (!script.Globals.Get("onEventStarted").IsNil()) | ||||
| @@ -93,14 +93,14 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.getName())); | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.GetName())); | ||||
|             } | ||||
|             | ||||
|         } | ||||
|  | ||||
|         public static void doActorOnSpawn(Player player, Npc target) | ||||
|         public static void DoActorOnSpawn(Player player, Npc target) | ||||
|         { | ||||
|             string luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.getName()); | ||||
|             string luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.GetName()); | ||||
|  | ||||
|             if (File.Exists(luaPath)) | ||||
|             { | ||||
| @@ -115,21 +115,21 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.getName())); | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.GetName())); | ||||
|             } | ||||
|  | ||||
|         } | ||||
|  | ||||
|         public static void doActorOnEventUpdated(Player player, Actor target, EventUpdatePacket eventUpdate) | ||||
|         public static void DoActorOnEventUpdated(Player player, Actor target, EventUpdatePacket eventUpdate) | ||||
|         { | ||||
|             string luaPath;  | ||||
|  | ||||
|             if (target is Command)             | ||||
|                 luaPath = String.Format(FILEPATH_COMMANDS, target.getName()); | ||||
|                 luaPath = String.Format(FILEPATH_COMMANDS, target.GetName()); | ||||
|             else if (target is Director) | ||||
|                 luaPath = String.Format(FILEPATH_DIRECTORS, target.getName());             | ||||
|                 luaPath = String.Format(FILEPATH_DIRECTORS, target.GetName());             | ||||
|             else | ||||
|                 luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.getName()); | ||||
|                 luaPath = String.Format(FILEPATH_NPCS, target.zoneId, target.GetName()); | ||||
|  | ||||
|             if (File.Exists(luaPath)) | ||||
|             { | ||||
| @@ -138,12 +138,12 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|                 if (script == null) | ||||
|                     return; | ||||
|  | ||||
|                 //Have to do this to combine LuaParams | ||||
|                 //Have to Do this to combine LuaParams | ||||
|                 List<Object> objects = new List<Object>(); | ||||
|                 objects.Add(player); | ||||
|                 objects.Add(target); | ||||
|                 objects.Add(eventUpdate.val2); | ||||
|                 objects.AddRange(LuaUtils.createLuaParamObjectList(eventUpdate.luaParams)); | ||||
|                 objects.AddRange(LuaUtils.CreateLuaParamObjectList(eventUpdate.luaParams)); | ||||
|  | ||||
|                 //Run Script | ||||
|                 if (!script.Globals.Get("onEventUpdate").IsNil()) | ||||
| @@ -151,13 +151,13 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.getName())); | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for actor {0}.", target.GetName())); | ||||
|             }                   | ||||
|         } | ||||
|  | ||||
|         public static void onZoneIn(Player player) | ||||
|         public static void OnZoneIn(Player player) | ||||
|         { | ||||
|             string luaPath = String.Format(FILEPATH_ZONE, player.getZone().actorId); | ||||
|             string luaPath = String.Format(FILEPATH_ZONE, player.GetZone().actorId); | ||||
|            | ||||
|             if (File.Exists(luaPath)) | ||||
|             { | ||||
| @@ -172,7 +172,7 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             }             | ||||
|         } | ||||
|  | ||||
|         public static void onBeginLogin(Player player) | ||||
|         public static void OnBeginLogin(Player player) | ||||
|         { | ||||
|             if (File.Exists(FILEPATH_PLAYER)) | ||||
|             { | ||||
| @@ -187,7 +187,7 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         public static void onLogin(Player player) | ||||
|         public static void OnLogin(Player player) | ||||
|         { | ||||
|             if (File.Exists(FILEPATH_PLAYER)) | ||||
|             { | ||||
| @@ -207,9 +207,9 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             Script script = new Script(); | ||||
|             ((FileSystemScriptLoader)script.Options.ScriptLoader).ModulePaths = FileSystemScriptLoader.UnpackStringPaths("./scripts/?;./scripts/?.lua"); | ||||
|             script.Globals["getWorldManager"] = (Func<WorldManager>)Server.GetWorldManager; | ||||
|             script.Globals["getStaticActor"] = (Func<string, Actor>)Server.getStaticActors; | ||||
|             script.Globals["getStaticActor"] = (Func<string, Actor>)Server.GetStaticActors; | ||||
|             script.Globals["getWorldMaster"] = (Func<Actor>)Server.GetWorldManager().GetActor; | ||||
|             script.Globals["getItemGamedata"] = (Func<uint, Item>)Server.getItemGamedata; | ||||
|             script.Globals["getItemGamedata"] = (Func<uint, Item>)Server.GetItemGamedata; | ||||
|  | ||||
|             try | ||||
|             { | ||||
| @@ -225,16 +225,16 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|  | ||||
|         private static void SendError(Player player, string message) | ||||
|         { | ||||
|             List<SubPacket> sendError = new List<SubPacket>(); | ||||
|             sendError.Add(EndEventPacket.buildPacket(player.actorId, player.currentEventOwner, player.currentEventName)); | ||||
|             player.sendMessage(SendMessagePacket.MESSAGE_TYPE_SYSTEM_ERROR, "", message); | ||||
|             player.playerSession.queuePacket(BasePacket.createPacket(sendError, true, false)); | ||||
|             List<SubPacket> SendError = new List<SubPacket>(); | ||||
|             SendError.Add(EndEventPacket.BuildPacket(player.actorId, player.currentEventOwner, player.currentEventName)); | ||||
|             player.SendMessage(SendMessagePacket.MESSAGE_TYPE_SYSTEM_ERROR, "", message); | ||||
|             player.playerSession.QueuePacket(BasePacket.CreatePacket(SendError, true, false)); | ||||
|         } | ||||
|  | ||||
|  | ||||
|         internal static void doDirectorOnTalked(Director director, Player player, Npc npc) | ||||
|         internal static void DoDirectorOnTalked(Director director, Player player, Npc npc) | ||||
|         { | ||||
|             string luaPath = String.Format(FILEPATH_DIRECTORS, director.getName()); | ||||
|             string luaPath = String.Format(FILEPATH_DIRECTORS, director.GetName()); | ||||
|  | ||||
|             if (File.Exists(luaPath)) | ||||
|             { | ||||
| @@ -249,13 +249,13 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for director {0}.", director.getName())); | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for director {0}.", director.GetName())); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         internal static void doDirectorOnCommand(Director director, Player player, Command command) | ||||
|         internal static void DoDirectorOnCommand(Director director, Player player, Command command) | ||||
|         { | ||||
|             string luaPath = String.Format(FILEPATH_DIRECTORS, director.getName()); | ||||
|             string luaPath = String.Format(FILEPATH_DIRECTORS, director.GetName()); | ||||
|  | ||||
|             if (File.Exists(luaPath)) | ||||
|             { | ||||
| @@ -270,7 +270,7 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for director {0}.", director.getName())); | ||||
|                 SendError(player, String.Format("ERROR: Could not find script for director {0}.", director.GetName())); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -2,12 +2,12 @@ | ||||
| { | ||||
|     class LuaEvent | ||||
|     { | ||||
|         public static void getStep() | ||||
|         public static void GetStep() | ||||
|         { | ||||
|  | ||||
|         } | ||||
|  | ||||
|         public static void getParam() | ||||
|         public static void GetParam() | ||||
|         { | ||||
|  | ||||
|         } | ||||
|   | ||||
| @@ -15,55 +15,55 @@ namespace FFXIVClassic_Map_Server.lua | ||||
|             this.player = player; | ||||
|         } | ||||
|  | ||||
|         public void setMusic(ushort musicID, ushort playMode) | ||||
|         public void SetMusic(ushort musicID, ushort playMode) | ||||
|         { | ||||
|             player.playerSession.queuePacket(SetMusicPacket.buildPacket(player.actorId, musicID, playMode), true, false); | ||||
|             player.playerSession.QueuePacket(SetMusicPacket.BuildPacket(player.actorId, musicID, playMode), true, false); | ||||
|         } | ||||
|  | ||||
|         public void setWeather(ushort weatherID) | ||||
|         public void SetWeather(ushort weatherID) | ||||
|         { | ||||
|             player.playerSession.queuePacket(SetWeatherPacket.buildPacket(player.actorId, weatherID, 1), true, false); | ||||
|             player.playerSession.QueuePacket(SetWeatherPacket.BuildPacket(player.actorId, weatherID, 1), true, false); | ||||
|         } | ||||
|  | ||||
|         public void getParameter(string paramName) | ||||
|         public void GetParameter(string paramName) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|  | ||||
|         public void setParameter(string paramName, object value, string uiToRefresh) | ||||
|         public void SetParameter(string paramName, object value, string uiToRefresh) | ||||
|         { | ||||
|              | ||||
|         } | ||||
|  | ||||
|         public void getAttributePoints() | ||||
|         public void GetAttributePoints() | ||||
|         { | ||||
|              | ||||
|         } | ||||
|  | ||||
|         public void setAttributePoints(int str, int vit, int dex, int inte, int min, int pie) | ||||
|         public void SetAttributePoints(int str, int vit, int dex, int inte, int min, int pie) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|  | ||||
|         public void logout() | ||||
|         public void Logout() | ||||
|         { | ||||
|             player.playerSession.queuePacket(LogoutPacket.buildPacket(player.actorId), true, false); | ||||
|             player.playerSession.QueuePacket(LogoutPacket.BuildPacket(player.actorId), true, false); | ||||
|         } | ||||
|  | ||||
|         public void quitGame() | ||||
|         public void QuitGame() | ||||
|         { | ||||
|             player.playerSession.queuePacket(QuitPacket.buildPacket(player.actorId), true, false); | ||||
|             player.playerSession.QueuePacket(QuitPacket.BuildPacket(player.actorId), true, false); | ||||
|         } | ||||
|  | ||||
|         public void runEvent(string functionName, params object[] parameters) | ||||
|         public void RunEvent(string functionName, params object[] parameters) | ||||
|         { | ||||
|             List<LuaParam> lParams = LuaUtils.createLuaParamList(parameters); | ||||
|         //    player.playerSession.queuePacket(RunEventFunctionPacket.buildPacket(player.actorId, player.eventCurrentOwner, player.eventCurrentStarter, functionName, lParams), true, false); | ||||
|             List<LuaParam> lParams = LuaUtils.CreateLuaParamList(parameters); | ||||
|         //    player.playerSession.QueuePacket(RunEventFunctionPacket.BuildPacket(player.actorId, player.eventCurrentOwner, player.eventCurrentStarter, functionName, lParams), true, false); | ||||
|         } | ||||
|  | ||||
|         public void endEvent() | ||||
|         public void EndEvent() | ||||
|         { | ||||
|           //  player.playerSession.queuePacket(EndEventPacket.buildPacket(player.actorId, player.eventCurrentOwner, player.eventCurrentStarter), true, false); | ||||
|           //  player.playerSession.QueuePacket(EndEventPacket.BuildPacket(player.actorId, player.eventCurrentOwner, player.eventCurrentStarter), true, false); | ||||
|         } | ||||
|  | ||||
|     } | ||||
|   | ||||
| @@ -40,7 +40,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         public static List<LuaParam> readLuaParams(BinaryReader reader) | ||||
|         public static List<LuaParam> ReadLuaParams(BinaryReader reader) | ||||
|         { | ||||
|             List<LuaParam> luaParams = new List<LuaParam>(); | ||||
|  | ||||
| @@ -54,10 +54,10 @@ namespace FFXIVClassic_Map_Server | ||||
|                 switch (code) | ||||
|                 { | ||||
|                     case 0x0: //Int32 | ||||
|                         value = Utils.swapEndian(reader.ReadInt32());                         | ||||
|                         value = Utils.SwapEndian(reader.ReadInt32());                         | ||||
|                         break; | ||||
|                     case 0x1: //Int32 | ||||
|                         value = Utils.swapEndian(reader.ReadUInt32());         | ||||
|                         value = Utils.SwapEndian(reader.ReadUInt32());         | ||||
|                         break;           | ||||
|                     case 0x2: //Null Termed String                         | ||||
|                         List<byte> list = new List<byte>(); | ||||
| @@ -79,17 +79,17 @@ namespace FFXIVClassic_Map_Server | ||||
|                         wasNil = true; | ||||
|                         break; | ||||
|                     case 0x6: //Actor (By Id) | ||||
|                         value = Utils.swapEndian(reader.ReadUInt32()); | ||||
|                         value = Utils.SwapEndian(reader.ReadUInt32()); | ||||
|                         break; | ||||
|                     case 0x7: //Weird one used for inventory | ||||
|                         uint type7ActorId = Utils.swapEndian(reader.ReadUInt32()); | ||||
|                         uint type7ActorId = Utils.SwapEndian(reader.ReadUInt32()); | ||||
|                         byte type7Unknown = reader.ReadByte(); | ||||
|                         byte type7Slot = reader.ReadByte(); | ||||
|                         byte type7InventoryType = reader.ReadByte(); | ||||
|                         value = new Type7Param(type7ActorId, type7Unknown, type7Slot, type7InventoryType); | ||||
|                         break;   | ||||
|                     case 0x9: //Two Longs (only storing first one) | ||||
|                         value = new Type9Param(Utils.swapEndian(reader.ReadUInt64()), Utils.swapEndian(reader.ReadUInt64())); | ||||
|                         value = new Type9Param(Utils.SwapEndian(reader.ReadUInt64()), Utils.SwapEndian(reader.ReadUInt64())); | ||||
|                         break; | ||||
|                     case 0xC: //Byte | ||||
|                         value = reader.ReadByte(); | ||||
| @@ -114,7 +114,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             return luaParams; | ||||
|         } | ||||
|  | ||||
|         public static void writeLuaParams(BinaryWriter writer, List<LuaParam> luaParams) | ||||
|         public static void WriteLuaParams(BinaryWriter writer, List<LuaParam> luaParams) | ||||
|         { | ||||
|             foreach (LuaParam l in luaParams) | ||||
|             {            | ||||
| @@ -126,10 +126,10 @@ namespace FFXIVClassic_Map_Server | ||||
|                 switch (l.typeID) | ||||
|                 { | ||||
|                     case 0x0: //Int32                         | ||||
|                         writer.Write((Int32)Utils.swapEndian((Int32)l.value)); | ||||
|                         writer.Write((Int32)Utils.SwapEndian((Int32)l.value)); | ||||
|                         break; | ||||
|                     case 0x1: //Int32                         | ||||
|                         writer.Write((UInt32)Utils.swapEndian((UInt32)l.value)); | ||||
|                         writer.Write((UInt32)Utils.SwapEndian((UInt32)l.value)); | ||||
|                         break; | ||||
|                     case 0x2: //Null Termed String | ||||
|                         string sv = (string)l.value; | ||||
| @@ -143,18 +143,18 @@ namespace FFXIVClassic_Map_Server | ||||
|                     case 0x5: //Nil                         | ||||
|                         break; | ||||
|                     case 0x6: //Actor (By Id) | ||||
|                         writer.Write((UInt32)Utils.swapEndian((UInt32)l.value)); | ||||
|                         writer.Write((UInt32)Utils.SwapEndian((UInt32)l.value)); | ||||
|                         break; | ||||
|                     case 0x7: //Weird one used for inventory | ||||
|                         Type7Param type7 = (Type7Param)l.value; | ||||
|                         writer.Write((UInt32)Utils.swapEndian((UInt32)type7.actorId)); | ||||
|                         writer.Write((UInt32)Utils.SwapEndian((UInt32)type7.actorId)); | ||||
|                         writer.Write((Byte)type7.unknown); | ||||
|                         writer.Write((Byte)type7.slot); | ||||
|                         writer.Write((Byte)type7.inventoryType); | ||||
|                         break; | ||||
|                     case 0x9: //Two Longs (only storing first one) | ||||
|                         writer.Write((UInt64)Utils.swapEndian(((Type9Param)l.value).item1)); | ||||
|                         writer.Write((UInt64)Utils.swapEndian(((Type9Param)l.value).item2)); | ||||
|                         writer.Write((UInt64)Utils.SwapEndian(((Type9Param)l.value).item1)); | ||||
|                         writer.Write((UInt64)Utils.SwapEndian(((Type9Param)l.value).item2)); | ||||
|                         break; | ||||
|                     case 0xC: //Byte | ||||
|                         writer.Write((Byte)l.value); | ||||
| @@ -169,7 +169,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             writer.Write((Byte)0xF); | ||||
|         } | ||||
|  | ||||
|         public static List<LuaParam> readLuaParams(byte[] bytesIn) | ||||
|         public static List<LuaParam> ReadLuaParams(byte[] bytesIn) | ||||
|         { | ||||
|             List<LuaParam> luaParams = new List<LuaParam>();             | ||||
|  | ||||
| @@ -187,10 +187,10 @@ namespace FFXIVClassic_Map_Server | ||||
|                         switch (code) | ||||
|                         { | ||||
|                             case 0x0: //Int32 | ||||
|                                 value = Utils.swapEndian(reader.ReadInt32()); | ||||
|                                 value = Utils.SwapEndian(reader.ReadInt32()); | ||||
|                                 break; | ||||
|                             case 0x1: //Int32 | ||||
|                                 value = Utils.swapEndian(reader.ReadUInt32()); | ||||
|                                 value = Utils.SwapEndian(reader.ReadUInt32()); | ||||
|                                 break; | ||||
|                             case 0x2: //Null Termed String                         | ||||
|                                 List<byte> list = new List<byte>(); | ||||
| @@ -213,17 +213,17 @@ namespace FFXIVClassic_Map_Server | ||||
|                                 wasNil = true; | ||||
|                                 break; | ||||
|                             case 0x6: //Actor (By Id) | ||||
|                                 value = Utils.swapEndian(reader.ReadUInt32()); | ||||
|                                 value = Utils.SwapEndian(reader.ReadUInt32()); | ||||
|                                 break; | ||||
|                             case 0x7: //Weird one used for inventory | ||||
|                                 uint type7ActorId = Utils.swapEndian(reader.ReadUInt32()); | ||||
|                                 uint type7ActorId = Utils.SwapEndian(reader.ReadUInt32()); | ||||
|                                 byte type7Unknown = reader.ReadByte(); | ||||
|                                 byte type7Slot = reader.ReadByte(); | ||||
|                                 byte type7InventoryType = reader.ReadByte(); | ||||
|                                 value = new Type7Param(type7ActorId, type7Unknown, type7Slot, type7InventoryType); | ||||
|                                 break; | ||||
|                             case 0x9: //Two Longs (only storing first one) | ||||
|                                 value = new Type9Param(Utils.swapEndian(reader.ReadUInt64()), Utils.swapEndian(reader.ReadUInt64())); | ||||
|                                 value = new Type9Param(Utils.SwapEndian(reader.ReadUInt64()), Utils.SwapEndian(reader.ReadUInt64())); | ||||
|                                 break; | ||||
|                             case 0xC: //Byte | ||||
|                                 value = reader.ReadByte(); | ||||
| @@ -249,7 +249,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             return luaParams; | ||||
|         } | ||||
|  | ||||
|         public static List<LuaParam> createLuaParamList(DynValue fromScript) | ||||
|         public static List<LuaParam> CreateLuaParamList(DynValue fromScript) | ||||
|         { | ||||
|             List<LuaParam> luaParams = new List<LuaParam>(); | ||||
|  | ||||
| @@ -257,16 +257,16 @@ namespace FFXIVClassic_Map_Server | ||||
|             { | ||||
|                 foreach (DynValue d in fromScript.Tuple) | ||||
|                 { | ||||
|                     addToList(d, luaParams); | ||||
|                     AddToList(d, luaParams); | ||||
|                 } | ||||
|             } | ||||
|             else | ||||
|                 addToList(fromScript, luaParams); | ||||
|                 AddToList(fromScript, luaParams); | ||||
|  | ||||
|             return luaParams; | ||||
|         } | ||||
|  | ||||
|         public static List<LuaParam> createLuaParamList(params object[] list) | ||||
|         public static List<LuaParam> CreateLuaParamList(params object[] list) | ||||
|         { | ||||
|             List<LuaParam> luaParams = new List<LuaParam>(); | ||||
|  | ||||
| @@ -276,16 +276,16 @@ namespace FFXIVClassic_Map_Server | ||||
|                 { | ||||
|                     Array arrayO = (Array)o; | ||||
|                     foreach (object o2 in arrayO) | ||||
|                         addToList(o2, luaParams); | ||||
|                         AddToList(o2, luaParams); | ||||
|                 } | ||||
|                 else | ||||
|                     addToList(o, luaParams);                      | ||||
|                     AddToList(o, luaParams);                      | ||||
|             } | ||||
|  | ||||
|             return luaParams; | ||||
|         } | ||||
|  | ||||
|         private static void addToList(DynValue d, List<LuaParam> luaParams) | ||||
|         private static void AddToList(DynValue d, List<LuaParam> luaParams) | ||||
|         { | ||||
|             if (d.Type == DataType.Number) | ||||
|             { | ||||
| @@ -316,7 +316,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private static void addToList(object o, List<LuaParam> luaParams) | ||||
|         private static void AddToList(object o, List<LuaParam> luaParams) | ||||
|         { | ||||
|             if (o is int) | ||||
|             { | ||||
| @@ -326,7 +326,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             { | ||||
|                 luaParams.Add(new LuaParam(0x1, (uint)o)); | ||||
|             }                 | ||||
|             else if (o is double) | ||||
|             else if (o is Double) | ||||
|             { | ||||
|                 if (((double)o) % 1 == 0) | ||||
|                     luaParams.Add(new LuaParam(0x0, (int)(double)o)); | ||||
| @@ -364,7 +364,7 @@ namespace FFXIVClassic_Map_Server | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         public static object[] createLuaParamObjectList(List <LuaParam> luaParams) | ||||
|         public static object[] CreateLuaParamObjectList(List <LuaParam> luaParams) | ||||
|         { | ||||
|             object[] list = new object[luaParams.Count]; | ||||
|  | ||||
| @@ -375,7 +375,7 @@ namespace FFXIVClassic_Map_Server | ||||
|         } | ||||
|      | ||||
|        | ||||
|         public static string dumpParams(List<LuaParam> lParams) | ||||
|         public static string DumpParams(List<LuaParam> lParams) | ||||
|         { | ||||
|             if (lParams == null) | ||||
|                 return "Param list was null?"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user