Exemple #1
0
        /// <summary>
        /// 用于初始化对象
        /// </summary>
        /// <returns>需要加入核心生命周期的继承了IBaseSys的对象</returns>
        public static IBaseSys[] Init()
        {
            // 在这里进行初始化
            RandomRewardGenerator.ResolveDic(DataBaseSys.GetTable("database/normal/reward"));
            CtrlKeys.Init();

            return(new IBaseSys[]
            {
                // 添加新的系统
                new LuaSys(),
                new CampSys(),
            });
        }
Exemple #2
0
        protected override string GetClientSideScriptOptions()
        {
            string retVal = base.GetClientSideScriptOptions();

            if (!string.IsNullOrEmpty(CtrlKeys))
            {
                if (!string.IsNullOrEmpty(retVal))
                {
                    retVal += ",";
                }
                retVal += "keys:'" + CtrlKeys.ToUpper().Replace(" ", "") + "'";
            }
            return(retVal);
        }
 public MarginClickEventArgs(NativeScintillaEventArgs nsea)
 {
     _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers;
     _Position = nsea.SCNotification.position;
     _Margin = nsea.SCNotification.margin;
 }
 public IndicatorEventArgs(NativeScintillaEventArgs nsea)
 {
     _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers;
     _Position = nsea.SCNotification.position;
 }
 public HotSpotEventArgs(NativeScintillaEventArgs nsea)
 {
     _Position = nsea.SCNotification.position;
     _Modifiers = (CtrlKeys)nsea.SCNotification.modifiers;
 }