# DataModel(ロブロックス クラス) > The root of Roblox's parent-child hierarchy. Its direct children are services, such as Workspace and Lighting, that act as the fundamental components of a Roblox game. - URL:https://roblox.minecraft-okinawa.com/reference/classes/DataModel/ - 公式:https://create.roblox.com/docs/reference/engine/classes/DataModel - 受け継いでいるクラス:ServiceProvider ## プロパティ - `DataModel.CreatorId: int64`:Describes the ID of the user or group that owns the place. - `DataModel.CreatorType: CreatorType`:Describes the CreatorType of the place, whether the place is owned by a user or a group. - `DataModel.GameId: int64`:Describes the ID of the experience that the place running on the server belongs to. - `DataModel.JobId: string`:A unique identifier for the running game server instance. - `DataModel.MatchmakingType: MatchmakingType`:Represents how players in the server are handled by matchmaking. - `DataModel.PlaceId: int64`:Describes the ID of the place running on the server. - `DataModel.PlaceVersion: int`:Describes the version of the place the server is running on. - `DataModel.PrivateServerId: string`:Describes the private server ID of the server, if the server is a VIP server or a reserved server. VIP servers and reserved servers are the two types of private servers. - `DataModel.PrivateServerOwnerId: int64`:Describes the Class.Player.UserId|UserId of the Player that owns the private server if the server is VIP. - `DataModel.RunService: RunService`:A reference to the RunService service. - `DataModel.ServerRegion: string`:The region code of the datacenter hosting the current game server. - `DataModel.Workspace: Workspace`:A reference to the Workspace service. ## メソッド - `DataModel:BindToClose(function: Function): ()`:Binds a function to be called before the server shuts down. - `DataModel:GetJobsInfo(): Array`:Returns a table containing basic information about the jobs performed by the task scheduler. - `DataModel:IsLoaded(): boolean`:Returns true if the client has finished loading the game for the first time. - `DataModel:SetPlaceId(placeId: int64): ()`:Sets the DataModel.PlaceId of the current game instance. - `DataModel:SetUniverseId(universeId: int64): ()`:Sets the DataModel.GameId of the current game instance to the given universeId. ## イベント - `DataModel.GraphicsQualityChangeRequest(betterQuality: boolean)`:Fires when the user prompts and increase or decrease in graphics quality using the hotkeys. - `DataModel.Loaded()`:Fires on the client when the game finishes loading for the first time. - `DataModel.ServerLowMemoryWarning()`:Fires on the server when Roblox detects that the server is under memory pressure. - `DataModel.ServerRestartScheduled(restartTime: DateTime, source: CloseReason, attributes: Dictionary)`:Fires on the server when the server has been scheduled to restart. Provides the scheduled restart time, source, and custom attributes. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)