public void Start() { FightingGameCharacter char0 = buildService.Build(male0Builder0.GetComponent <ICharacterBuilder>()); FightingGameCharacter char1 = buildService.Build(male0Builder1.GetComponent <ICharacterBuilder>()); char0.charVelocity = charVelocity; char0.SetInputBuffer(inputBuffer); EventManager.TriggerEvent <ResonantSpark.Events.FightingGameCharsReady>(); }
public void StartCharacterBuild(Action <FightingGameCharacter> fgCharCallback = null) { foreach (KeyValuePair <int, ICharacterBuilder> charBuilder in selectedFGChars) { int playerId = charBuilder.Key; FightingGameCharacter builtFGChar = buildService.Build(charBuilder.Value); fgChars.Add(playerId, builtFGChar); HumanInputController humanInputController = inputService.GetInputController(playerId); if (humanInputController != null) { humanInputController.ConnectToCharacter(builtFGChar); } fgCharCallback?.Invoke(builtFGChar); } foreach (KeyValuePair <int, FightingGameCharacter> curr in fgChars) { List <FightingGameCharacter> othersList = new List <FightingGameCharacter>(); foreach (KeyValuePair <int, FightingGameCharacter> other in fgChars) { if (curr.Value != other.Value) { othersList.Add(other.Value); } } otherChars.Add(curr.Key, othersList); } }
public ActionResult UpdateSource(int sourceTagId) { CurrentUserModel.CleanSources(sourceTagId); SourceTag st = CurrentUserModel.GetSourceTag(sourceTagId); BuildService.Build(CurrentUserModel.CurrentApplication.Id, st.ProjectId); return(RedirectToAction("Index", new { id = st.ProjectId })); }
public override async Task Execute() { await base.Execute(); _buildService.ClearBuildFolder(); bool b = await _buildService.Build(); if (b) { Complete(); } else { Fail(); } }
public void UpdateSource(VcsSource s, bool rebuild) { VcsSource os = db.SelectObjectById <VcsSource> (s.Id); db.UpdateObject(s); if (os.Directory != s.Directory) { foreach (SourceTag st in GetVcsSourceTags(s.Id)) { st.Status = SourceTagStatus.Waiting; db.UpdateObject(st); } } if (rebuild) { BuildService.Build(CurrentApplication.Id, os.ProjectId); } }
public void CreateSource(VcsSource source) { source.LastFetchTime = DateTime.Now.Subtract(TimeSpan.FromDays(1)); db.InsertObject(source); BuildService.Build(CurrentApplication.Id, source.ProjectId); }