public void DoEarlyConcedeTask() { if (!this.m_completed) { GameState state = GameState.Get(); switch (this.m_power.Type) { case Network.PowerType.SHOW_ENTITY: { Network.HistShowEntity power = (Network.HistShowEntity) this.m_power; state.OnEarlyConcedeShowEntity(power); break; } case Network.PowerType.HIDE_ENTITY: { Network.HistHideEntity hideEntity = (Network.HistHideEntity) this.m_power; state.OnEarlyConcedeHideEntity(hideEntity); break; } case Network.PowerType.TAG_CHANGE: { Network.HistTagChange netChange = (Network.HistTagChange) this.m_power; state.OnEarlyConcedeTagChange(netChange); break; } } this.m_completed = true; } }
public override string ToString() { string str = "null"; if (this.m_power != null) { switch (this.m_power.Type) { case Network.PowerType.FULL_ENTITY: { Network.HistFullEntity power = (Network.HistFullEntity) this.m_power; str = string.Format("type={0} entity={1} tags={2}", this.m_power.Type, this.GetPrintableEntity(power.Entity), power.Entity.Tags); break; } case Network.PowerType.SHOW_ENTITY: { Network.HistShowEntity entity2 = (Network.HistShowEntity) this.m_power; str = string.Format("type={0} entity={1} tags={2}", this.m_power.Type, this.GetPrintableEntity(entity2.Entity), entity2.Entity.Tags); break; } case Network.PowerType.HIDE_ENTITY: { Network.HistHideEntity entity3 = (Network.HistHideEntity) this.m_power; str = string.Format("type={0} entity={1} zone={2}", this.m_power.Type, this.GetPrintableEntity(entity3.Entity), entity3.Zone); break; } case Network.PowerType.TAG_CHANGE: { Network.HistTagChange change = (Network.HistTagChange) this.m_power; str = string.Format("type={0} entity={1} {2}", this.m_power.Type, this.GetPrintableEntity(change.Entity), Tags.DebugTag(change.Tag, change.Value)); break; } case Network.PowerType.CREATE_GAME: str = ((Network.HistCreateGame) this.m_power).ToString(); break; case Network.PowerType.META_DATA: str = ((Network.HistMetaData) this.m_power).ToString(); break; } } return(string.Format("power=[{0}] complete={1}", str, this.m_completed)); }
public void DoTask() { if (!this.m_completed) { GameState state = GameState.Get(); switch (this.m_power.Type) { case Network.PowerType.FULL_ENTITY: { Network.HistFullEntity power = (Network.HistFullEntity) this.m_power; state.OnFullEntity(power); break; } case Network.PowerType.SHOW_ENTITY: { Network.HistShowEntity showEntity = (Network.HistShowEntity) this.m_power; state.OnShowEntity(showEntity); break; } case Network.PowerType.HIDE_ENTITY: { Network.HistHideEntity hideEntity = (Network.HistHideEntity) this.m_power; state.OnHideEntity(hideEntity); break; } case Network.PowerType.TAG_CHANGE: { Network.HistTagChange netChange = (Network.HistTagChange) this.m_power; state.OnTagChange(netChange); break; } case Network.PowerType.META_DATA: { Network.HistMetaData metaData = (Network.HistMetaData) this.m_power; state.OnMetaData(metaData); break; } } this.m_completed = true; } }
public static void ApplyHideEntity(Entity entity, Network.HistHideEntity hideEntity) { entity.SetTag(GAME_TAG.ZONE, hideEntity.Zone); }
public static void ApplyHideEntity(Triton.Game.Mapping.Entity entity, Network.HistHideEntity hideEntity) { object[] objArray1 = new object[] { entity, hideEntity }; MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "GameUtils", "ApplyHideEntity", objArray1); }
public bool OnHideEntity(Network.HistHideEntity hideEntity) { object[] objArray1 = new object[] { hideEntity }; return(base.method_11 <bool>("OnHideEntity", objArray1)); }
public void PredictZoneFromHideEntity(TempZone tempZone, Network.HistHideEntity hideEntity) { object[] objArray1 = new object[] { tempZone, hideEntity }; base.method_8("PredictZoneFromHideEntity", objArray1); }
public ZoneChange CreateZoneChangeFromHideEntity(Network.HistHideEntity hideEntity) { object[] objArray1 = new object[] { hideEntity }; return(base.method_14 <ZoneChange>("CreateZoneChangeFromHideEntity", objArray1)); }