public static IGameDef CreateGameDef() { global::System.IntPtr cPtr = mcworld_client_corePINVOKE.CreateGameDef(); IGameDef ret = (cPtr == global::System.IntPtr.Zero) ? null : new IGameDef(cPtr, false); return(ret); }
public GameConfiguratorData(IGameDef gameDef, GameControlKind whiteGameControl, GameControlKind blackGameControl) { GameDef = gameDef; WhiteGameControl = whiteGameControl; BlackGameControl = blackGameControl; }
public override void InstallBindings() { CoreInstaller.Install(Container); IGameDef gameDef = _gameDef; Container.Bind <IInitializable>().To <SingleGameInitializable>().AsSingle().WithArguments(gameDef).NonLazy(); }
private void ArrangementFigures(IGameDef gameDef) { foreach (var startInfoFigureDef in gameDef.StartInfoFigureDefs) { var figureDef = startInfoFigureDef.Def; var team = startInfoFigureDef.Team; var figureEntity = FigureCreator.Create(figureDef, team); var cell = BoardModel.GetCell(startInfoFigureDef.StartCol, startInfoFigureDef.StartRow); FigureController.MoveFigure(figureEntity, cell); } }
public void Init(World world) { _World = world; var initParam = new GameInitParam(); initParam.bLogtoStd = false; initParam.logCallback = OnCppLogCallback; initParam.blockCallback = OnCppBlockReceiveCallback; initParam.messageCallback = OnCppProtocolCallback; initParam.serverReadyCallback = OnCppServerReadyCallback; _GameDef = mcworld_client_core.CreateGameDef(); bool initResult = _GameDef.init(initParam); LogHelper.DEBUG("CppCore", "Init(InitParam) result={0}", initResult); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IGameDef obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public GameConfigurator(IGameDef gameDef, IPlayerBallDef playerBallDef) { GameDef = gameDef.CheckNull(); PlayerBallDef = playerBallDef.CheckNull(); }
public SingleGameInitializable(IGameStatusObserver gameStatusObserver, IGameDef gameDef) { GameStatusObserver = gameStatusObserver.CheckNull(); GameDef = gameDef.CheckNull(); }
public GameConfigurator(IGameDef gameDef, IDictionary <GameTeam, IGameControl> controlByTeam) { GameDef = gameDef; ControlsByTeam = controlByTeam; }
public void GameInitialize(IGameConfigurator configurator) { _gameDef = configurator.GameDef; PlayerBallDef = configurator.PlayerBallDef; }