コード例 #1
0
ファイル: ViewsModule.cs プロジェクト: myth326/ecs
        void IComponentCopyable.CopyFrom(IComponentCopyable other)
        {
            var otherView = (CreateViewComponentRequest <TState>)other;

            this.viewInfo = otherView.viewInfo;
            this.seed     = otherView.seed;
        }
コード例 #2
0
ファイル: ViewsModule.cs プロジェクト: myth326/ecs
        void IComponentCopyable.CopyFrom(IComponentCopyable other)
        {
            var otherView = (DestroyViewComponentRequest <TState>)other;

            this.viewInfo     = otherView.viewInfo;
            this.viewInstance = otherView.viewInstance;
        }
コード例 #3
0
ファイル: ViewsModule.cs プロジェクト: myth326/ecs
        void IComponentCopyable.CopyFrom(IComponentCopyable other)
        {
            var otherView = (ViewComponent)other;

            this.viewInfo = otherView.viewInfo;
            this.seed     = otherView.seed;
        }
コード例 #4
0
        public void CopyFrom(IComponentCopyable other)
        {
            var _other = (PathfindingInstance)other;

            if (this.pathfinding == null && _other.pathfinding == null)
            {
                return;
            }

            if (this.pathfinding == null && _other.pathfinding != null)
            {
                this.pathfinding = (_other.pathfinding.clonePathfinding == true ? _other.pathfinding.Clone() : _other.pathfinding);
            }
            else
            {
                if (_other.pathfinding.clonePathfinding == true)
                {
                    this.pathfinding.CopyFrom(_other.pathfinding);
                }
                else
                {
                    this.pathfinding = _other.pathfinding;
                }
            }
        }
コード例 #5
0
ファイル: CalculatePath.cs プロジェクト: mmvlad/ecs
        public void CopyFrom(IComponentCopyable other)
        {
            var _other = (Path)other;

            this.result = _other.result;
            ArrayUtils.Copy(in _other.path, ref this.path);
            ArrayUtils.Copy(in _other.nodes, ref this.nodes);
        }