rive_rs/bones/
skeletal_component.rs

1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use crate::core::{Core, ObjectRef, OnAdded};
6use crate::transform_component::TransformComponent;
7
8#[derive(Debug, Default)]
9pub struct SkeletalComponent {
10    transform_component: TransformComponent,
11}
12
13impl Core for SkeletalComponent {
14    parent_types![(transform_component, TransformComponent)];
15
16    properties!(transform_component);
17}
18
19impl OnAdded for ObjectRef<'_, SkeletalComponent> {
20    on_added!(TransformComponent);
21}