internal static Charachip wodi8(Entity entity, PosUtil posUtil, Texture2D texture) { var chip = new Charachip(entity, posUtil); chip.anim = animForWodi8(texture).zCx(Layers.Stage, Depths.Charachip).setEntity(entity); return(chip); }
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); }
public EntityBar(PosUtil posUtil, EntityBarStyle style, Vector2 offset = default(Vector2)) { this.posUtil = posUtil; this.style = style; this.offset = offset; this.size = new Vector2(posUtil.tileWidth - 2, 5); }
public static CharaView wodi8(Entity entity, PosUtil posUtil, Texture2D texture, Vec2i pos, Dir9 dir) { var chip = Charachip.wodi8(entity, posUtil, texture); return(entity.add(new CharaView(chip)).snapToGridPos(pos).setDir(dir)); }
public void addHpBar(PosUtil posUtil, EntityBarStyle style) { this.bar = new HpBar(posUtil, style); this.bar.Entity = this.Entity; this.bar.OnAddedToEntity(); }
public void replCtx(RlGameContext gameCtx, PosUtil posUtil) { this.services.replCtx(gameCtx, posUtil); }
public void replCtx(RlGameContext gameCtx, PosUtil posUtil) { this.gameCtx = gameCtx; this.posUtil = posUtil; }
public HpBar(PosUtil posUtil, EntityBarStyle style, Vector2 offset = default(Vector2)) : base(posUtil, style, offset) { }
Charachip(Entity entity, PosUtil posUtil) { this.posUtil = posUtil; this.entity = entity; }
public RlEventViewUtils(PosUtil p, VInput input) { this.posUtil = p; this.input = input; }