示例#1
0
文件: Cradle.cs 项目: toyboot4e/Rot
        public static ControlContext create(VInput input)
        {
            var self = new ControlContext(input);

            self.setCradle(new Cradle(self));
            return(self);
        }
示例#2
0
 public RlViewServices(ControlContext ctrlCtx, RlGameContext gameCtx, PosUtil posUtil)
 {
     this.gameCtx  = gameCtx;
     this.cradle   = ctrlCtx.cradle;
     this.posUtil  = posUtil;
     this.input    = ctrlCtx.input;
     this.viewUtil = new RlEventViewUtils(this.posUtil, this.input);
 }
示例#3
0
文件: Cradle.cs 项目: toyboot4e/Rot
 internal Cradle(ControlContext context)
 {
     this.storage = new Dictionary <Type, Control>();
     this.stack   = new Stack <Control>();
     this.ctx     = context;
 }
示例#4
0
文件: Cradle.cs 项目: toyboot4e/Rot
 internal void injectContext(ControlContext ctx)
 {
     this.ctrlCtx = ctx;
     this.onContextInjected();
 }