DIFF

class WorldEditorAPISource

Constructors 2

private void WorldEditorAPI()
private void ~WorldEditorAPI()

Methods 25

proto native bool BeginTerrainAction(string historyPointName = "", string historyPointIcon = "")
proto native void EndTerrainAction(string historyPointName = "")
proto native bool BeginEntityAction(string historyPointName = "", string historyPointIcon = "")

begin of logical edit action

proto native bool EndEntityAction(string historyPointName = "")

end of edit action

proto native bool IsDoingEditAction()

true, if code stay betwen BeginEntityAction() and EndEntityAction()

proto native bool UndoOrRedoIsRestoring()

true, if editor is restoring undo or redo state

proto native bool IsModifyingData()
proto native IEntity SourceToEntity(IEntitySource entSrc)
proto native IEntitySource EntityToSource(IEntity ent)
proto native IEntitySource FindEntityByName(string name)
proto native external void SetEntitySelection(IEntity ent)
proto native external void AddToEntitySelection(IEntity ent)
proto native void ClearEntitySelection()
proto native void RemoveFromEntitySelection(IEntity ent)
proto native void SetPropertySelection(string id)
proto native external bool ModifyEntityKey(IEntity ent, string key, string value)
proto native external bool ModifyEntityTemplateKey(IEntitySource tmpl, string key, string value)
proto native external IEntity CreateEntity(string className, string name, int layerId, vector coords, vector angles)
proto native external IEntity CreateClonedEntity(IEntity ent, string name)
proto native external bool DeleteEntity(IEntity ent)
proto native bool DeleteEntities(out array<IEntity> ents)
proto native IEntity GetEntityUnderCursor()
proto native external bool TraceWorldPos(int x, int y, int traceFlags, out vector traceStart, out vector traceEnd, out vector traceDir)
proto native int GetSelectedEntitiesCount()
proto native IEntity GetSelectedEntity(int n = 0)