public static void OnUpdateCommand(ref YotogiPlay.PlayerState playerState, ref Dictionary <YotogiPlay.PlayerState, Yotogi.SkillData.Command.Data[]> commandDictionary, ref YotogiCommandFactory commandFactory) { CommandUpdateEventArgs args = new CommandUpdateEventArgs { CommandFactory = commandFactory, Commands = commandDictionary, PlayerState = playerState }; CommandUpdate?.Invoke(null, args); }
private void OnCommandUpdate(object sender, CommandUpdateEventArgs args) { if (!allYotogiCommandsVisible) return; Debugger.Assert( () => { for (int i = 0; i < args.Commands[args.PlayerState].Length; i++) { Yotogi.SkillData.Command.Data data = args.Commands[args.PlayerState][i]; args.CommandFactory.AddCommand(data); } }, "Failed to manually add yotogi command"); }
public static void OnUpdateCommand(ref YotogiPlay.PlayerState playerState, ref Dictionary<YotogiPlay.PlayerState, Yotogi.SkillData.Command.Data[]> commandDictionary, ref YotogiCommandFactory commandFactory) { CommandUpdateEventArgs args = new CommandUpdateEventArgs { CommandFactory = commandFactory, Commands = commandDictionary, PlayerState = playerState }; CommandUpdate?.Invoke(args); }