public void AddReset(string type, int extra, int arg1, int arg2, int arg3)
        {
            var newReset = new ResetData
            {
                Type    = Realm.Library.Common.Extensions.EnumerationExtensions.GetEnumIgnoreCase <ResetTypes>(type),
                Extra   = extra,
                Command = type[0].ToString()
            };

            newReset.SetArgs(arg1, arg2, arg3);
            Resets.Add(newReset);
        }
Beispiel #2
0
        public static ResetData LuaCreateReset(string resetType, int extra, int arg1, int arg2, int arg3)
        {
            var newReset = new ResetData
            {
                Type  = EnumerationExtensions.GetEnumIgnoreCase <ResetTypes>(resetType),
                Extra = extra
            };

            newReset.SetArgs(arg1, arg2, arg3);

            _luaManager.Proxy.CreateTable("reset");
            AddLastObject(newReset);

            _logManager.Boot("Reset '{0}' created", resetType);
            return(newReset);
        }