Esempio n. 1
0
 public static NavCellDefinition Create(NavCell navCell)
 {
     var def = new NavCellDefinition
     {
         Min = navCell.Min,
         Max = navCell.Max,
         Flags = navCell.Flags
     };
     return def;
 }
Esempio n. 2
0
        public static NavCellDefinition Create(NavCell navCell)
        {
            var def = new NavCellDefinition
            {
                Min   = navCell.Min,
                Max   = navCell.Max,
                Flags = navCell.Flags
            };

            return(def);
        }
Esempio n. 3
0
        public static GridNode Create(Vector2 center, GridScene gridScene, NavCellDefinition navCell)
        {
            var def = new GridNode
            {
                _center = center,
                Center = center + gridScene.Min,

                _navCellDefinition = navCell,
                _gridScene = gridScene
            };
            return def;
        }
Esempio n. 4
0
        public static GridNode Create(Vector2 center, GridScene gridScene, NavCellDefinition navCell)
        {
            var def = new GridNode
            {
                _center = center,
                Center  = center + gridScene.Min,

                _navCellDefinition = navCell,
                _gridScene         = gridScene
            };

            return(def);
        }