예제 #1
0
        public Actor CreateActor(Player owner, Guid?externalId, string nativeName, RoleModelNative roleModel, Tile target, string visualization, string enemyVisualization, float?z)
        {
            if (target.TempObject != null)
            {
                return(null);
            }

            Actor actor = new Actor(this, owner, externalId, target, visualization, enemyVisualization, z, NativeManager.GetActorNative(nativeName), roleModel);

            Actors.Add(actor);
            target.ChangeTempObject(actor, true);
            return(actor);
        }